API ReferenceGE Extensionseditor
Scene View
Provides additional scene view windows in the editor - supports 3D, orthographic, camera path, and vehicle-attached view modes with configurable frustum, clipping, and debug draw masks.
Provides additional scene view windows in the editor - supports 3D, orthographic, camera path, and vehicle-attached view modes with configurable frustum, clipping, and debug draw masks.
Public API
| Function | Signature | Description |
|---|---|---|
M.onEditorGui | () | Renders all active scene view windows |
M.onEditorInitialized | () | Registers the "Add Scene View" menu item; restores deserialized views |
M.onSerialize | () | Serializes all scene views for persistence |
M.onDeserialized | (data) | Stores deserialized data for restoration after editor init |
View Modes
| Mode | Description |
|---|---|
3d | Mirrors the main camera position and rotation |
left / right / front / back / top / bottom | Orthographic axis-aligned views with drag panning |
currentSelectedCamera | Follows the last selected Camera or CameraBookmark object |
cameraPath | Follows editor.currentCamPathLocation for camera path preview |
View Configuration
| Property | Type | Description |
|---|---|---|
nearClip | float | Near clipping plane (default: 0.01, ortho: 0.6) |
farClip | float | Far clipping plane (default: 2500, ortho: 100) |
fov | float | Field of view in degrees (default: 70, ortho: 150) |
ortho | bool | Orthographic projection toggle |
attachToObject | bool | Attach view to player vehicle |
editorIconsVisible | bool | Show editor icons in this view |
editorGizmoVisible | bool | Show editor gizmo in this view |
renderDebugDrawMask | int | Debug draw render mask (-1 = all) |
Usage Example
-- Scene views are created via editor menu:
-- Window → Add Scene View
-- Multiple views can be open simultaneously with different modes.
-- Right-click a view to access the mode/settings popup.Notes
- Uses
ImguiRenderViewControlfor offscreen rendering to ImGui textures - Orthographic views include a grid overlay with 0.25m spacing
- Mouse wheel zooms (ortho: adjusts FOV, 3D: moves forward/back)
- Left mouse drag pans the view in orthographic modes
See Also
- Editor AI Tests - Related reference
- Editor AI Visualization - Related reference
- Editor – Assembly Spline Tool - Related reference
- World Editor Guide - Guide
Scene Tree
The editor's scene tree window - a hierarchical tree view of all scene objects with filtering, drag-and-drop reordering, multi-selection, prefab support, virtual scrolling, and undo/redo for group ope
Screenshot Creator Bootstrap
Minimal bootstrap module that adds a "Vehicle Screenshot Creator" menu item to the editor, delegating to `util_screenshotCreator`.