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

Function inspector_asset_picker_value

perro_editor/res/scripts/ui/editor_ui.rs:2294–2305  ·  view source on GitHub ↗
(
    path: &str,
    kind: perro_scene::SceneAssetKind,
    glb_mesh_index: usize,
)

Source from the content-addressed store, hash-verified

2292 }
2293 return format!("{}{}", " ".repeat(indent), label);
2294 }
2295 format!("{}{}", " ".repeat(indent), title_case_label(label))
2296}
2297
2298fn title_case_label(label: &str) -> String {
2299 label
2300 .replace('_', " ")
2301 .split_whitespace()
2302 .map(|word| {
2303 let mut chars = word.chars();
2304 let Some(first) = chars.next() else {
2305 return String::new();
2306 };
2307 format!(
2308 "{}{}",

Callers 1

Calls 1

is_gltf_pathFunction · 0.70

Tested by

no test coverage detected