Skip to main content

draw_script_editor

Function draw_script_editor 

Source
fn draw_script_editor(
    ui: &mut Ui,
    world: &mut World,
    entity: Entity,
    project: Option<&Project>,
    requests: &mut UiRequests,
)
Expand description

The selected entity’s stacked .rhai scripts: a reorderable/removable list of what’s attached (execution order top-to-bottom), plus a picker to attach more from the project’s scripts/ folder. Unlike draw_renderable_editor, attaching/detaching/reordering needs no GPU load step, so this mutates world.scripts directly rather than going through UiRequests (beyond flagging edited).