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

Function set_ui_node_padding

perro_editor/res/scripts/ui/editor_ui.rs:3996–4006  ·  view source on GitHub ↗
(
    ctx: &mut ScriptContext<'_, API>,
    name: &str,
    padding: UiRect,
)

Source from the content-addressed store, hash-verified

3994 }
3995 }
3996 data.base_ref()
3997 .and_then(|base| find_scene_value_text(base, field))
3998}
3999
4000pub fn unique_node_name(doc: &SceneDoc, prefix: &str) -> String {
4001 for idx in 1..1000 {
4002 let name = format!("{prefix}_{idx}");
4003 if !doc.scene.key_names.iter().any(|item| item.as_ref() == name) {
4004 return name;
4005 }
4006 }
4007 format!("{prefix}_x")
4008}
4009

Callers 1

Calls 1

find_namedFunction · 0.85

Tested by

no test coverage detected