Skip to main content

draw

Function draw 

Source
pub fn draw(
    ui: &mut Ui,
    world: &mut World,
    selected: &mut Option<Entity>,
    renaming: &mut Option<Entity>,
    rename_buffer: &mut String,
    project: Option<&Project>,
    entity_assets: &mut HashMap<Entity, RenderableAsset>,
    assets_expanded: &mut bool,
    texture_previews: &mut HashMap<PathBuf, TextureHandle>,
    is_playing: bool,
    script_errors: &[String],
    settings: &mut EditorSettings,
    renaming_script: &mut Option<PathBuf>,
    script_rename_buffer: &mut String,
    renaming_scene: &mut Option<PathBuf>,
    scene_rename_buffer: &mut String,
    export_status: Option<&str>,
    current_scene: &Path,
    current_scene_dirty: bool,
    open_scenes: &[(PathBuf, bool)],
    active_scene: usize,
    requests: &mut UiRequests,
)
Expand description

Top menu bar (project New/Open/Save) + bottom assets panel (collapsible; import/preview project assets) + left hierarchy panel (add/remove/rename/select entities) + right inspector panel for the selected entity’s Transform and Renderable (attach/replace/remove), editable live.