Mesh Spline Editor
Editor tool for placing static meshes along splines. Supports multiple mesh components (main + 3 aliases), start/end caps, random/round-robin distribution, jitter, vertical offset, terrain conforming,
Editor tool for placing static meshes along splines. Supports multiple mesh components (main + 3 aliases), start/end caps, random/round-robin distribution, jitter, vertical offset, terrain conforming, polygon drawing, bitmap import, and terraform operations.
Public API
| Function | Signature | Description |
|---|---|---|
M.setSelectedSplineIdx | (idx) | Sets the selected spline index |
M.setSelectedNodeIdx | (idx) | Sets the selected node index |
M.onSerialize | () → table | Serializes all mesh splines for scene save |
M.onDeserialized | (data) | Deserializes mesh splines from scene data |
M.onEditorGui | () | Main per-frame GUI and rendering callback |
M.onEditorInitialized | () | Registers edit mode and tool window |
M.onClientEndMission | () | Cleans up all mesh splines on map exit |
Key Features
- Multi-Component Meshes: Main mesh + up to 3 aliases with configurable rotation presets
- Distribution Modes: Round-robin or weighted random selection of components
- Start/End Caps: Optional cap meshes at spline endpoints
- Jitter Controls: Forward, right, and up axis randomization per mesh placement
- Mesh Audition: Browse and select static meshes from file system
- Polygon Drawing: Define closed areas for mesh population
- Bitmap Import: Import spline paths from PNG skeleton masks
- Presets: Built-in presets (Concrete Barrier, Plastic Barrier, Metal Fence, etc.)
Mesh Target Slots
| Slot | Description |
|---|---|
main | Primary mesh component |
alias1-3 | Alternative mesh components |
start | Start cap mesh |
end | End cap mesh |
Usage Example
-- Activate via editor toolbar: "Mesh Spline"
-- Add a spline, place nodes, select a mesh from the audition browser
-- Adjust spacing, jitter, and vertical offset
-- Meshes are automatically placed along the spline in the scene treeDependencies
editor/meshSpline/splineMgr- Spline data managementeditor/meshSpline/populate- Mesh placement along splineseditor/meshSpline/import- Import from existing scene objectseditor/toolUtilities/*- Input, rendering, geometry, RDP, polygon
See Also
- Editor AI Tests - Related reference
- Editor AI Visualization - Related reference
- Editor – Assembly Spline Tool - Related reference
- World Editor Guide - Guide
Mesh Road Editor
Editor extension for creating and editing MeshRoad objects. Thin wrapper around the shared `meshEditor` base module, configured for MeshRoad-specific behavior.
Mission Editor
Main editor tool for creating, editing, and managing gameplay missions. Provides a full ImGui interface for mission properties, conditions, career setup, objectives, start triggers, and flowgraph inte