Skip to main content

draw_camera_editor

Function draw_camera_editor 

Source
fn draw_camera_editor(
    ui: &mut Ui,
    world: &mut World,
    entity: Entity,
    requests: &mut UiRequests,
)
Expand description

The selected entity’s camera lens, if it has one: a checkbox to attach/detach a [CameraComponent] (mirrors draw_renderable_editor’s Remove button), then FOV/near/far fields and an “Active Camera” checkbox once attached. No GPU-load UiRequests indirection is needed here like draw_renderable_editor’s attach flow — requests is only used to flag edited.