Opening the Script Editor
Press C from the editor viewport, or access it through the Level Properties menu.Script Management
Creating Scripts
- Click Create in the Script Editor
- Enter a unique script name in the input field
- Click Create to confirm
LuaScriptsCollection and appears in the script list.
Editing Scripts
- Select a script from the list on the left
- The script’s source code appears in the text editor on the right
- Edit the Lua code directly
- Changes are saved automatically when you switch scripts or close the editor
Deleting Scripts
- Select a script from the list
- Click Delete
- Confirm in the popup
Selecting Scripts (Assign Mode)
When opened from an element’s script properties:- The editor opens in Select Mode — the Select button is visible
- Select a script from the list
- Click Select to assign it to the element
- The editor closes and returns to the Element Properties panel
Script List
The left panel shows all scripts in the level’sLuaScriptsCollection:
- Scripts are sorted alphabetically
- The currently selected script is highlighted
- The list updates when scripts are created or deleted
Text Editor
The right panel contains an in-game text editor with:- Multi-line text editing
- Caret positioning
- Copy/paste support
- Automatic saving when switching scripts
LuaDoc Manual
The Script Editor includes an integrated Lua documentation browser:- Access Lua API documentation without leaving the editor
- Browse available hooks, signals, classes, and functions
- Reference while writing scripts
Modes
Script Storage
Scripts are stored in the level’sLuaScriptsCollection and saved with the level data. Each script has:
- Name — Unique identifier
- Source Code — Lua source text
- Is Teal — Whether the script uses Teal (typed Lua) — currently always
false
The Script Editor auto-saves changes when you switch between scripts. There is no manual save button — editing is continuous.