MCPcopy Create free account
hub / github.com/PerroEngine/Perro / set_viewport_stream_camera

Function set_viewport_stream_camera

perro_editor/res/scripts/ui/editor_ui.rs:4334–4344  ·  view source on GitHub ↗
(
    ctx: &mut ScriptContext<'_, API>,
    name: &str,
    camera: NodeID,
)

Source from the content-addressed store, hash-verified

4332 let _ = with_node_mut!(ctx.run, UiButton, id, |node| {
4333 node.style.fill = color;
4334 });
4335 }
4336}
4337
4338pub fn set_panel_fill<API: ScriptAPI + ?Sized>(
4339 ctx: &mut ScriptContext<'_, API>,
4340 name: &str,
4341 fill: &str,
4342) {
4343 let Some(color) = Color::from_hex(fill) else {
4344 return;
4345 };
4346 if let Some(id) = find_named(ctx, name) {
4347 let _ = with_node_mut!(ctx.run, UiPanel, id, |node| {

Callers 1

load_preview_sceneFunction · 0.85

Calls 1

find_namedFunction · 0.85

Tested by

no test coverage detected