Barriers Editor
Editor tool for selecting and managing barrier prefabs in levels. Provides visual 3D sphere display of barrier positions, two-column selection UI, and integration with the Race Editor for assigning ba
Editor tool for selecting and managing barrier prefabs in levels. Provides visual 3D sphere display of barrier positions, two-column selection UI, and integration with the Race Editor for assigning barriers to race paths.
Public API (Exports)
| Function | Signature | Description |
|---|---|---|
M.onSerialize | () | Serialization callback (empty) |
M.onDeserialized | (data) | Deserialization callback (empty) |
M.show | () | Open the barriers editor window |
M.onEditorInitialized | () | Registers window, menu item, and edit mode |
M.onExtensionLoaded | () | Extension loaded callback |
M.onEditorGui | () | Main UI rendering with barrier lists and race editor integration |
Key Features
- Prefab Scanning - Find all
.prefabfiles matching a search pattern (default:*barrier*) - Visual Display - Green/red 3D spheres at barrier positions, with filename labels
- Two-Column UI - Unselected (green) on left, selected (red) on right
- Mouse Selection - Edit mode with click to toggle, Shift+click to add, Alt+click to remove
- Race Editor Integration - Add/set/copy selection to/from Race Editor paths
Race Editor Integration
| Action | Description |
|---|---|
| Add Selection to Race Editor | Appends selected barriers to current race path |
| Set Selection exactly | Adds selected, removes unselected from race path |
| Copy Selection from Race Editor | Sets selection to match race path's barriers |
Edit Mode Controls
| Input | Action |
|---|---|
| Left Click | Toggle barrier selection |
| Shift + Left Click | Add to selection only |
| Alt + Left Click | Remove from selection only |
Usage Example
-- Open the barriers editor
editor_barriersEditor.show()See Also
- camPathEditor - Camera path tool (similar edit mode pattern)
AutoSave
Editor extension that periodically auto-saves the level scene tree and provides a restore dialog on unclean exits. Saves to `/settings/editor/autosaves/<levelName>/`.
Biome Tool
Advanced editor tool for procedural biome generation on terrain. Manages biome layers with terrain material or lasso-area zones, forest brush placement, exclusion zones, and mask-based vegetation dist