Editor Level Settings
Registers a custom inspector type handler for level-wide settings, allowing level configuration to be shown in the standard inspector panel.
Registers a custom inspector type handler for level-wide settings, allowing level configuration to be shown in the standard inspector panel.
Module Overview
| Aspect | Detail |
|---|---|
| File | extensions/editor/levelSettings.lua |
| Returns | M table |
| Role | Level settings inspector integration |
Public Functions
| Function | Signature | Description |
|---|---|---|
M.onEditorActivated | () | Registers the "level_settings" inspector type handler and exposes editor.showLevelSettings |
M.onEditorDeactivated | () | Unregisters the inspector type handler |
M.onExtensionLoaded | () | Called on extension load (no-op) |
API Added to editor
| Function | Description |
|---|---|
editor.showLevelSettings() | Sets editor.selection to {level_settings = {1}}, triggering the inspector to show the level settings UI |
Usage Example
-- Show level settings in the inspector
editor.showLevelSettings()
-- The inspector will call the registered handler:
-- imgui.Text("Level Settings")Note: The current implementation shows a minimal placeholder text. The actual level settings fields would be expanded in the inspector handler function.
See Also
- Editor AI Tests - Related reference
- Editor AI Visualization - Related reference
- Editor – Assembly Spline Tool - Related reference
- World Editor Guide - Guide
Editor Layout Manager
Manages saving, loading, and deleting of editor window layout presets. Handles both named layout snapshots and the current working layout. Wraps ImGui INI persistence and editor window state JSON file
Editor Level Validator
Level validation tool that scans scene objects and forest items for common issues (missing shapes, out-of-bounds placement, invalid transforms). Displays categorized logs with filtering, sorting, and