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

Function scene_field_value

perro_editor/res/scripts/ui/editor_ui.rs:3127–3136  ·  view source on GitHub ↗
(data: &'a SceneNodeData, field: &str)

Source from the content-addressed store, hash-verified

3125 mesh_count,
3126 indexed_ref(path, "mesh", mesh_count, mesh_index),
3127 material_count,
3128 indexed_ref(path, "mat", material_count, mat_index),
3129 animation_count,
3130 indexed_ref(path, "animation", animation_count, anim_index),
3131 skeleton_count,
3132 texture_count,
3133 )
3134}
3135
3136pub fn indexed_ref(path: &str, kind: &str, count: usize, index: usize) -> String {
3137 if count == 0 {
3138 "-".to_string()
3139 } else {

Callers 1

Calls 4

findMethod · 0.80
base_refMethod · 0.80
iterMethod · 0.45
as_refMethod · 0.45

Tested by

no test coverage detected