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

Function set_text_box_text_ratio

perro_editor/res/scripts/ui/editor_ui.rs:3947–3957  ·  view source on GitHub ↗
(
    ctx: &mut ScriptContext<'_, API>,
    name: &str,
    ratio: f32,
)

Source from the content-addressed store, hash-verified

3945 vec![format_compact_f32(*x), format_compact_f32(*y)]
3946 }
3947 SceneValue::Vec3 { x, y, z } => vec![
3948 format_compact_f32(*x),
3949 format_compact_f32(*y),
3950 format_compact_f32(*z),
3951 ],
3952 SceneValue::Vec4 { x, y, z, w } => vec![
3953 format_compact_f32(*x),
3954 format_compact_f32(*y),
3955 format_compact_f32(*z),
3956 format_compact_f32(*w),
3957 ],
3958 SceneValue::IVec2 { x, y } => vec![x.to_string(), y.to_string()],
3959 SceneValue::IVec3 { x, y, z } => vec![x.to_string(), y.to_string(), z.to_string()],
3960 SceneValue::IVec4 { x, y, z, w } => {

Calls 1

find_namedFunction · 0.85

Tested by

no test coverage detected