Skip to main content

draw_script_tile

Function draw_script_tile 

Source
fn draw_script_tile(
    ui: &mut Ui,
    project: &Project,
    path: &Path,
    settings: &mut EditorSettings,
    renaming_script: &mut Option<PathBuf>,
    script_rename_buffer: &mut String,
    requests: &mut UiRequests,
)
Expand description

A script has no thumbnail either (see draw_model_tile’s doc comment for the same reasoning), so its tile is a plain placeholder icon, sized to match a texture/model tile. Unlike the other asset tiles, this one is interactive: click opens path in an external text editor (see open_script_in_editor) and the right-click context menu offers Rename (inline, like the Hierarchy panel’s entity rename) and a way to change the remembered editor.