get_viewport_state
Read the active Unreal Engine 5 level editor viewport without changing it, returning camera location and rotation, view mode, camera speed, and show flags like Grid and Collision.
Instructions
Read the active level editor viewport (the focused one, else the first) without changing it: realtime, view mode name and index, camera speed, camera location [x, y, z] and rotation [pitch, yaw, roll], and the Grid, Bounds, Collision, Wireframe and Lighting show flags.
Returns: { realtime: bool, view_mode_index: int, view_mode: string, camera_speed: number, location: [number], rotation: [number], show_flags: object }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||