Getting StartedBeginner

Editor basics

Navigate the viewport, select objects, use transform gizmos, and run a scene.

Viewport controls

The editor uses a Three.js viewport that fills the window, with the scene hierarchy, the inspector and the editor's tools around its edges (see "Workspace panels" below). Select an object in the viewport or in the Objects panel to edit its transform and type-specific settings in Properties.

Camera movement uses FlyControls and is always available:

ShortcutAction
W A S DMove horizontally
Q / EDescend / elevate
Arrow keysLook around
Drag in the viewportLook around (hold Shift to draw a selection marquee instead)

Every keyboard shortcut

This is the complete list. The editor's hotkeys and the shortcuts shown in the command palette are generated from one set of command definitions, so anything below is exactly what the palette will tell you.

Editing

ShortcutAction
Cmd/Ctrl + KOpen the command palette
Cmd/Ctrl + ZUndo the last editor change
Cmd/Ctrl + Shift + Z or Cmd/Ctrl + YRedo
1 / 2 / 3Switch transform gizmo mode (translate / rotate / scale)
Delete or BackspaceDelete every selected object. This can be undone.
Cmd/Ctrl + Shift + LOpen the editor Lua REPL

Selection

ShortcutAction
Shift + dragDraw a marquee to select everything inside it
Cmd/Ctrl + ASelect every object in the scene
EscDeselect everything
FFrame the selected object
/Open the Objects tab and focus its search field

Simulation

ShortcutAction
Cmd/Ctrl + EnterStart the simulation, or stop it and restore the authored state
PPause or resume physics and scripts without stopping
EscStop the simulation and restore the authored state

Camera and view

ShortcutAction
HomeExit an authored camera preview, or reset the editor camera
Shift + FToggle the frame-rate meter. Under its graph it lists the whole frame's draw calls and triangles, and the CPU time of the simulation (scripts and physics) and of each render pass (scene, shadow, ao, bloom, output). Below those, render-health lines tell a slow frame from a stall: the longest gap between frames against the longest frame, shader programs and new compiles, geometries and textures, WebGL contexts, shader link failures (once there are any, with how many came with a lost context), whether the page is visible and focused, and a one-line diagnosis when a frame stalls, the window is held to one frame a second, or the WebGL context is lost. Add ?debug to a published game's URL to show it there. See Troubleshooting
No shortcut (its button in the dock, the rail's More editor controls (⋯) menu on smaller screens, or the command palette)Open version history — save a checkpoint of the whole project, or restore an earlier one
No shortcut (its button at the bottom of the rail, the rail's More editor controls (⋯) menu on smaller screens, or the command palette)Set project thumbnail — capture the current viewport as the image shown on the project card

Esc appears twice on purpose. While a simulation is running it stops the simulation; while one is not, it clears the selection. Pressed inside an open rail panel, it closes that panel instead.

Selecting more than one object

Hold Shift and drag in the viewport to draw a marquee — everything inside it is selected. Cmd/Ctrl + A selects the whole scene, and Esc clears the selection. Marquee selection only works while the simulation is stopped, and holding Shift suppresses camera movement for the duration of the drag so the view does not slew while you are dragging a box.

With several objects selected, the transform gizmo operates on all of them around a shared pivot, and Delete removes all of them as a single undoable change.

Workspace panels

The viewport fills the window and the panels live in a rail down its right edge. This is the same on every screen size; phones and small tablets get a scaled-down version, described at the end of this section. From the top, the rail's buttons are AI (the sparkles button; see The AI assistant), then Objects, Properties, Materials, Assets and Scripts. Click one to open that panel beside the rail. One panel shows at a time: opening another replaces it, and clicking the same button again, the panel's × or Esc inside it closes it. A panel you close keeps its search and scroll position for next time.

Selecting an object opens Properties only when no panel is open, so it never hides a conversation or a library you are using. With another panel open, click Properties to see the selection.

In a desktop window (1024 pixels wide or more), the bottom of the rail holds the editor-camera button (Home), Set project thumbnail, the Editor Lua REPL (Cmd/Ctrl + Shift + L) and Editor commands, which opens the command palette (Cmd/Ctrl + K).

On desktop, a dock at the bottom centre of the viewport holds the Move, Rotate and Scale tools (1 / 2 / 3, hidden while the simulation runs), the three GUI view modes, Run (Pause and Stop while it runs), Undo, Redo, Version history, and the field you type AI requests into. The project's branch chip sits at the top-left of the viewport and shows the branch you are on; its list of branches opens directly beneath it. Other drawers, such as Version history and the material form, open beside the rail and any open panel, above the dock.

On smaller screens, such as phones and small tablets, the layout is the same, scaled down. The rail keeps the AI, Objects, Properties, Materials, Assets and Scripts buttons, and scrolls if a short landscape screen cannot fit them. In place of the desktop's bottom-of-rail buttons it has a More editor controls (⋯) button, whose menu holds the three GUI view modes, Version history, Reset editor camera, Set project thumbnail, the Editor Lua REPL and Editor commands. A panel opens in the same single slot, nearly the full width of a phone, one at a time, and closes with its rail button or its ×; selecting an object opens Properties only when no panel is open, as on desktop. The dock holds Move, Rotate and Scale, Run (Pause and Stop while it runs), Undo and Redo. It has no AI field: the AI panel has its own prompt field at its bottom (see The AI assistant). The branch chip stays at the top-left, and drawers such as Version history, Branches and the material form slide in from the left edge. Nothing in this layout can be moved, so there is no layout to reset.

The Objects panel has two tabs. Objects lists what is in the current scene; Scenes lists every scene in the project, and is where you switch between them, add one, duplicate one, or set which scene solo play starts in (Set as Start; the multiplayer start scene is chosen on the project page under Game startup).

Select an object and press Clone at the bottom of its Properties panel to copy it and all its children in the current scene. The copied root keeps the original parent and moves by +1 on X and Z in that parent's coordinates; children keep their local transforms. Links within the copied group follow the copies; links outside it keep their original targets. Materials, scripts and assets are shared with the originals. Undo and Redo apply to the whole copy together. Duplicate needs a server connection and waits for pending saves. If a save failed, fix it before trying Duplicate again.

When an object fails to load

If a scene object's stored data cannot be read, the editor skips that object rather than refusing to open the scene, and a panel appears at the top of the viewport saying how many objects failed to load. The rest of the scene is fully editable while the panel is showing.

This is the answer to "an object has vanished from my scene": it has not been deleted, it was skipped, and it will be skipped again on the next load until its data is fixed. Each row offers five actions:

  • Retry — attempt to load that object again, which is enough if the failure was transient.
  • Select — select the object so you can fix its fields in the inspector.
  • Copy — copy the object's id, the error, and the object's stored data, formatted to paste straight into the AI assistant or an MCP client. Copy all does the same for every failed object at once.
  • Delete — remove the object permanently, if it is not worth repairing.
  • Dismiss — hide the row. This repairs nothing: the object is still broken and the panel returns the next time the scene loads.

The panel has a second kind of row, amber rather than red: an object that did load, but was built from something other than what it references. The usual one is a terrain whose height map could not be read, which comes out as procedural noise of the right size rather than the shape you authored — a failure that is otherwise invisible, because the terrain is there and looks like terrain. The other is an object whose script is not in the project any more — it loads and renders but its script does nothing, and the row says so with the missing script's id; the row clears on its own once the script exists again or the object is given another. Those rows are marked in the scene and offer everything above except Delete — and a missing-script row has no Retry either, since loading it again would not find the script: the object is standing and rendering, and deleting it would take its children with it. The header counts the two kinds separately.

The same panel also lists objects the server refused to save, marked not saved to server with the server's reason — for example an invalid material binding, a parent the object may not have (a water volume, or a link between a GUI element and a 3D object), or an id already in use. That object is on screen now but exists only in this browser, so it will be gone on the next load. These rows offer Select, Copy, and Dismiss; nothing is rolled back or retried for you. Fix the cause and edit the object again, and the row clears once the server accepts the save. A server that simply cannot be reached (offline, or an error on its side) does not add a row.

Pasting what Copy produces is usually the fastest fix, because the text already contains the stored data the object failed to load with, which is what a repair has to change.

GUI element visibility in the viewport

A group of three buttons in the dock (in the rail's More editor controls (⋯) menu on smaller screens) controls how GUI objects (labels, panels, images, buttons) render in the 3D viewport, since they can otherwise sit on top of and block clicks on regular scene objects. The highlighted one is the current mode:

  • Show GUI elements (default) — GUI elements render normally and can be selected like any other object.
  • Hide GUI elements — GUI elements are hidden so they don't obscure the 3D scene underneath.
  • Edit GUI overlay — the 3D scene is dimmed and 3D picking is disabled, so you can select and position GUI/overlay elements without fighting object selection underneath them.

In every mode the game's GUI stays beneath the editor's own controls, so a HUD element with a high zIndex never covers the rail, the dock or a panel.

GUI element positioning and layout

GUI elements live in screen space rather than the 3D world. In Free layout, Position (X, Y) is a normalized 0–1 point inside the element's container: the canvas for a root element, or its parent panel for a child. 0, 0 is the top-left and 1, 1 the bottom-right. Z is unused; zIndex controls front-to-back order.

Anchors and size modes

Anchor chooses which point of the element's own box lands on its position. The default is topLeft. To center an element without knowing its size, use position 0.5, 0.5 and anchor center. The other anchors pin any edge or corner, and Margin pushes an edge-anchored element inward in pixels.

Width and height each have a size mode: Fixed uses pixels, Hug follows the contents, Fill takes the container, and Percent interprets the stored width or height as 0–100% of the container. Font size, padding, borders, and gaps remain pixel values.

Panel flow layout

A guiPanel can place its children freely, in a row, or in a column. Row and column layouts ignore each child's position and anchor; the panel uses Gap, Across/Down justification, cross-axis alignment, and optional wrapping instead. Children use Order and their margins and size modes. This is the reliable way to build menus and toolbars that survive different viewport sizes.

Dragging a freely positioned element writes its normalized position. Dragging a child in a flowing panel rewrites its order. Older scenes may contain out-of-range positions such as 310 from a brief pixel-based format; those values still render compatibly, but new work should use normalized positions, anchors, and flow.

Text style

A label's and a button's inspector also style their text: Font Weight, Italic, Text Align (a label is left-aligned and a button centred until you choose), Letter Spacing (px), a Text Outline with its colour and width, and a Text Shadow with its colour and alpha, X and Y offset, and blur. HUD text drawn over the 3D scene passes over bright sky one moment and dark ground the next, so give it an outline or a shadow to keep it readable without a backing panel. Scripts can change the same settings during a run; see the gameObject API reference.

Accessible labels

GUI buttons, images and panels have an Accessible Label field: what a screen reader announces. Fill it in for any button without text, such as an invisible hotspot or a button showing only a symbol; a textless button without one is announced by its object name. On an image it is the alt text, and on a panel it announces the panel as a named group, such as "Pause menu". Buttons can be reached with Tab and pressed with Enter or Space. A script can change the label during a run with setAriaLabel.

Scenes and objects

Objects belong to a scene, not directly to a project. Materials, assets, scripts, and shaders are project resources that can be reused by objects across that project’s scenes.

Importing from another project

In the destination scene, open Add An Object → Import from another project…, then choose a source project, scene and object in the same account. The import copies that object and all its children, including GUI panel contents. Materials, scripts, shaders and assets become independent copies: editing the imported resources leaves the source project unchanged. Stored asset bytes are shared within the account, so the import adds no source-file storage usage.

The imported root becomes a scene root using its stored local position, rotation and scale; it does not inherit its original parent's transform. Children keep their local transforms. Undo and Redo treat the imported objects as one change. Undo keeps the copied library resources available, because other objects may already use them.

Import needs a server connection and reads saved source data, so save source edits first. A missing dependency or a link to an object outside the selected hierarchy refuses the whole import. Choose a common parent that includes the linked objects, or remove the link before importing. Multiplayer weapon bindings are also refused; project and scene settings are not copied. Literal UUIDs in copied Lua follow the imported objects and resources, but computed IDs and name-based lookups need manual review against the destination game. One import copies at most 2,000 objects and 2,000 resource dependencies, within the destination game's publishing object limit.

Account library

Open Objects → Add An Object → Account library… to save and reuse prefabs, assets, scripts, materials and shaders across projects in this account. Save from project lets you choose a saved source, give it a name and description, and add tags. A prefab includes the selected object, its children and their resource dependencies. Save pending source edits first: the library captures the server's saved state.

Choose an item, select a revision and press Add revision to project. Each import creates independent copies with new IDs. A prefab root becomes a scene root, keeping its saved local transform. Later library saves never update existing project copies. Editor Undo/Redo treats a prefab import as one object action; Undo keeps the copied resources available. Resource-only imports do not add an object Undo entry.

Save a new revision captures a chosen source into the same item without changing older revisions. A concurrent save refuses an outdated revision number; reload before saving again. Name, description and tags are editable details rather than revision content. Use Inspect saved content to read a revision's JSON; asset items also offer their retained source file for download.

The global Account library page browses and filters items by type, name or description, and exact tag, and lets you edit details or delete an item. Open a project editor to save or import. Deleting an item removes all its revisions but leaves imported copies intact. Library saves, edits and deletion are account changes: project checkpoints and AI turn revert do not undo them. Imported copies are normal project content covered by project history.

Prefabs can hold GUI widgets, effects, rigs and vehicles. Object links outside a prefab, unknown UUIDs in Lua and multiplayer weapon bindings are refused; include a common parent or remove the links first. Scenes and game settings are not captured. Each save/import allows at most 2,000 objects and 2,000 resource dependencies, subject to the destination game limit. See Assets, materials, and shaders for retained files and dependencies.

Game startup: loading appearance and a menu scene

On the project page, open Game startup to choose the Solo start scene and the Multiplayer start scene, whether a multiplayer game allows Solo play without a room, loading artwork, background and accent colors, a loading message, a Share description for links, and an optional Menu scene. Upload PNG, JPEG or WebP artwork in the editor's Assets library first; images must be at most 5 MiB and 4096 pixels per side. Save with Save startup settings. Changes reach a live game when you republish.

A menu is a separate scene with a camera, GUI and scripts; it runs only for solo play, never in a room. Solo play starts at the Solo start scene, after the menu if one is set. Rooms start at the Multiplayer start scene, which is the solo one unless you choose another (Same as solo start scene removes the override), and a room option may still pick a different gameplay scene. Both start scenes need an active camera to publish, and you cannot delete the scene a room starts in until you choose another. Choose Default start screen to use the built-in start screen. An MCP client sets the same two scenes with solo_start_scene_id and multiplayer_start_scene_id on projects_update or projects_configure_multiplayer. See Customize loading and the main menu and Menu button scripts.

Scene Settings: fog, tone mapping, bloom, ambient occlusion and reverb

With the Scenes tab open, the Properties panel shows Scene Settings for the current scene — its sky, gravity, scene script, variables and player controls among them. Four of its sections change how the whole scene is drawn, and all four are off in a new scene, so a scene made before they existed looks exactly as it did:

  • Fog fades distant geometry into a colour. Linear fog begins at Fog Start and is solid by Fog End, in metres from the camera; Exponential fog thickens with distance at the Fog Density you set. The sky itself is not fogged, so pick a colour close to the sky at the horizon. 2D GUI is never fogged.
  • Tone Mapping chooses how lighting becomes screen colour. ACES Filmic is the look most games use; AgX and Neutral keep colours truer. Every mapper rolls off bright highlights instead of clipping them, so a scene switched to one often wants brighter lights or a higher Exposure.
  • Bloom adds a glow around the brightest parts of the frame — emissive materials and strongly lit surfaces. The sky is never bloomed (it draws its own halo around the sun), so give anything that should glow an emissive material. Bloom Threshold is how bright a pixel must be to glow, Bloom Strength how strong the glow is and Bloom Radius how far it spreads. Bloom costs a few full-screen passes every frame, which slows older phones noticeably: in one test scene on an iPhone 13 Pro Max, with ambient occlusion already off, turning bloom off raised the frame rate from 36 to 60 fps. Leave it off in a game played mostly on phones unless the glow matters. In Preview and published games, a device still too slow with ambient occlusion already off (see below) turns bloom off on its own.
  • Ambient Occlusion adds soft contact shadows where surfaces meet: in creases, corners and under objects resting on the ground. Quality is Low (half resolution, the cheapest), Medium (the default) or High. AO Intensity (0 to 1) is how dark the occlusion gets, AO Radius (0.05 to 5 m, default 0.5) how far a surface looks for nearby geometry, and AO Distance Falloff (0 to 1) how much less a farther occluder counts. Only opaque geometry casts or receives it: glass, water, alpha-cut foliage, the sky and the GUI are left out. It renders the scene's depth a second time and adds several full-screen passes every frame, which makes it the most expensive of these effects on a phone. Low helps but is still costly: a test scene on an iPhone 12 mini ran at 36 fps with Medium, 43 with Low and 55 with ambient occlusion off. For a game played mostly on phones, leave it off. With linear fog, meshes wholly beyond the fog's far distance are left out of that second render, since the fog hides them anyway. In Preview and published games the occlusion adapts to the player's hardware: when the game stays below 30 fps on a computer, or below 55 fps on a phone or tablet, it steps down, first to lower qualities, then to Low drawn from the scene's existing depth with no second geometry render, then off, and then Bloom turns off. Each step is a trial: on a computer, one that does not make the game faster is undone and adapting stops, while a phone or tablet keeps it and tries the next. It climbs back only after a sustained stretch above 50 fps (about 58 on a phone or tablet), and a phone or tablet does not climb back to a step it has already given up. Each device remembers where it settled in each game and starts its next visit there, still climbing back when frames are fast. A computer that holds 30 fps, or a phone that holds 55, keeps your setting, and the editor always shows it as set.

They apply in the editor, in Preview and in a published game, and the AI assistant and an MCP client can set them too.

The Sky section sets the sun's position and the atmosphere. Its last slider, Sky Brightness (0 to 2, default 1), scales the colour of the sky dome. When Environment lighting is enabled, that brightness also affects the lighting baked from the sky. The sky is tuned for a low exposure, so under ACES Filmic or AgX at an Exposure of about 1 or more it can wash out to near white. Lower Sky Brightness (0.5 is a good start) rather than Exposure, which darkens the whole scene. With Environment lighting off, Sky Brightness does not change how objects are lit. At 1 the sky keeps its original brightness.

Rayleigh and Mie Coefficient are how much the atmosphere scatters light. With both at 0 there is no scattering at all, and the sky renders as a near-black night sky with the sun's disc still showing while the sun is up. Raise Rayleigh (default 3) for a blue sky.

The Skybox section draws an image in place of that procedural sky. Its Image list offers Procedural sky (the default) and the project's images, generated skies first. The image should be an equirectangular panorama, twice as wide as it is tall: a sky the AI assistant or an MCP client generated (see Generated skies), or one you uploaded. Once an image is chosen, Skybox Rotation (0 to 360°) turns it about the vertical axis, and Skybox Brightness (0 to 2, default 1) scales its colour and, when Environment lighting is enabled, the lighting baked from it. While a skybox is set, the Sky sliders above have no visible effect. Lights are separate objects in either case, so aim the scene's lights to match a sun painted in the image. Fog does not cover the skybox, so match the fog colour to the image's horizon. If the image is deleted, the list shows Missing image, the procedural sky is drawn instead, and publish checks report it. A scene created from another scene's sky (inherit_sky_from in scenes_create) copies its skybox too.

The Environment lighting section can Light materials from the sky, adding lighting and reflections to Standard and Physical materials from the visible procedural sky or skybox. It is off by default. Environment Intensity (0 to 2, default 1) changes that lighting without changing the background. Sky brightness and skybox rotation affect the lighting too. A black sky supplies no environment light; scene lights remain independent. The setting works in the editor, Preview and published games. Test its cost on your target devices before enabling it for phone-first games.

The Reverb section gives the sound effects the echo of a space. Space is Off (the default), Room, Hall, Tunnel, Stadium or Cave; Reverb Mix (0 to 1, default 0.3) is how much of what you hear is reverb, and around 0.2 to 0.4 sounds like a place rather than an effect. Music stays dry unless Reverb on music is on. Reverb is heard while the game runs; a script can change it with scene.setReverb, and Stop restores the scene's setting. See Scene scripts, variables, and storage.

Performance: point light budget and render scale

The Performance section of Scene Settings is for slower graphics hardware, such as integrated graphics, older laptops and phones. Its settings apply only in Preview and the published game: the editor viewport, Run included, always shows every light at full resolution. In a new scene they are all off, so a scene renders exactly as it did before they existed. The AI assistant and an MCP client can set them too.

  • Point Light Budget (0 to 16, default 0, which is off) is the most point lights shaded at once. The renderer shades every point light on every lit pixel, wherever the light is: a light's Distance only fades its light to nothing and does not skip the work, a light at intensity 0 costs the same as a lit one, and hiding lights changes how many the shaders are compiled for, so every lit material recompiles. With a budget of N, once the scene has more than N point lights with Cast Shadow off, the game keeps N fixed stand-in lights instead, so the shaders are compiled once. About four times a second the stand-ins go to the lights brightest at the camera. A light already holding one keeps it unless another is 1.5 times brighter, and a light whose reach lies wholly outside the view counts for nothing. Every frame a stand-in copies its light's position, colour, intensity, Distance and Decay, so a script that moves or dims a light still works, and a light gaining or losing a stand-in fades over about 0.35 s rather than popping. Shadow-casting point lights are always shaded and never counted. A new point light casts shadows, and so does one saved before the setting existed, which shows Cast Shadow ticked in the inspector. Each shadow-casting point light renders the scene's shadow casters six more times every frame, one for each side of its cube shadow map, so five of them add thirty extra renders. Switch Cast Shadow off on every light that does not need a shadow: torches, lanterns, fill lights and effect lights such as a hit flash.
  • Render Scale (0.5 to 1, default 1) is the fraction of the screen's resolution the scene renders at, scaled up to fill the screen. 0.5 shades a quarter of the pixels and looks softer. It applies on top of the device's own cap: at most 1.25 device pixels per CSS pixel on a phone, 1.5 on a tablet and 2 on a computer.
  • Adaptive resolution (off by default) lets a device that is too slow (below 30 fps, or 55 fps on a phone or tablet) lower the resolution on its own, after ambient occlusion and bloom have stepped down to off (or straight away in a scene without them): first to three quarters of the Render Scale, then to half, never below 0.35. As with ambient occlusion, each step is a trial (undone on a computer if the game does not get faster, kept on a phone or tablet), and it climbs back after a sustained stretch of fast frames. Turn it on for a game played mostly on phones.

Give a local light, such as a lantern, torch or lamp, a Distance a little past what it should light. A range does not make the light cheaper to draw, but it is how the budget tells that the camera is out of the light's reach. A light with no Distance reaches until it falls below a faint threshold, which for a bright light can be a long way. Set a budget when a large scene has more than about 8 point lights. Publishing warns when a scene has more than 8 point lights with Cast Shadow off and no budget.

Preview and published games also draw repeated scenery in batches, with no setting to turn on. Unscripted cubes, spheres, cylinders and capsules that are static (or have no collider) and share a geometry and material, colour aside, are drawn as one instanced batch per 64 m tile instead of one draw call each, in the colour and ambient occlusion passes alike. Tiles are laid from the corner of each group of matching objects, not from the world origin, so a compact arena is one batch per look wherever it sits. A city of thousands of blocks becomes a few hundred draws. Shadows are batched more coarsely: a shadow map records only depth, so batched objects of one shape cast through one shadow batch per 256 m tile whatever their colour, roughness or opaque texture, as long as their materials draw the same sides and none uses alpha testing, an alpha map, displacement or clipping (those cast through their colour batch). This matters most under a shadow-casting point light, which draws its casters six times a frame. Nothing about the objects changes: each keeps its collider and its place in the hierarchy. An object leaves its batch and draws itself again, for the rest of the run, as soon as a script is handed it (by name, type, name prefix, id, a variable, its parent or children, or any other call that returns it) or anything about it changes: its transform, visibility, shadows or material. Objects with a script, dynamic or kinematic bodies, objects with multiplayer settings, transparent or shader materials, triggers, water and soft bodies, and objects another object refers to (a constraint's body, a camera's target, an object variable) are never batched. The editor viewport, Run included, draws every object on its own. So a scene script that sweeps the scenery with scene.getObjectsByType("cube") or a broad getObjectsByNamePrefix takes every match out of its batch; give the objects a script needs a name of their own and look those up instead.

Particle effects

The Add menu's Effects group adds a Particle Emitter, for smoke, exhaust, dust, sparks and explosions; it shows in the Objects list with a flame icon. Its particles appear only while the game runs, and in the editor it is drawn as a small orange gizmo, so tune it with Run going: changes in its inspector apply to the running emitter at once. See Particles for what each setting does.

Colour fields

Most colour fields in the inspector pair a colour picker with three number fields from 0 to 1. The picker's hex is always sRGB, as in CSS and any other colour picker, so paste a palette's hex into the picker rather than the numbers. For GUI elements and particle emitters the numbers are sRGB too: a hex code's channels divided by 255. For materials, lights, and a vehicle's tires, rims and tracks they are linear RGB, the values the renderer uses, so they read lower than the hex: #808080 shows as about 0.22. See Assets, materials, and shaders.

Simulation

Use the Run control to start simulation. Script init() functions run once, update(deltaTime) runs each frame (several times in a frame slower than 30 fps, in steps of at most 1/30 s, so the game keeps real time), and physics begins stepping. Stop simulation to call destroy() and restore the authored state. Each run starts every object script afresh: the whole script runs again before init(), so a top-level local starts at its initial value rather than where the last run left it.

While a run renders through a scene camera, the viewport leaves out the editor's helpers, as Preview does: light helpers, camera frustums and models, an empty's marker, trigger and hidden-collider stand-ins, and constraint lines. The selected object's outline and gizmo stay.

Run keeps the editor around the game. To play it the way a player will, switch from Build to Preview in the page header. Preview is also where desktop mouse look and on-screen touch controls work: the editor's Run reads the keyboard and mouse buttons, but not mouse movement or a touch drag.

Editing a script

Click a script in the Scripts panel, or Edit script beside an object's script in Properties, to open the Edit Script dialog. Your changes are a draft until you click Save Script; Cancel or closing the dialog discards them. If the AI assistant or another tab saves the same script while you are editing, your draft is kept and the dialog warns that saving will overwrite the newer version.

Explaining a script

Beside the Lua Code label, Explain script asks the AI to explain the draft as it is on screen, saved or not. Select some lines first and the button becomes Explain lines N–M, which explains just those lines in the context of the whole script. An explanation gives a summary, a walk through the code by line range, the Lua and engine concepts it uses, and things to check, each marked as an error, a warning or a tip.

While the explanation is current, each thing to check is marked on its lines in the code, red for an error, yellow for a warning and blue for a tip. Every line reference in the explanation, such as Lines 4–9, is a button: click it to highlight those lines and scroll to them, and click it again to clear the highlight.

A suggested change is shown as the lines it removes and the lines it adds, with Apply to draft. Applying one changes only the draft; nothing is saved until you click Save Script, so you can still cancel. An explanation never changes your script by itself. Once the draft changes, by your typing or by applying a suggestion, the explanation's line numbers may no longer match: the dialog says the explanation is out of date, the marks clear, and its remaining suggestions can no longer be applied. Click Explain again for a fresh one.

If an explanation mentions an engine call that is not part of the Lua API, it says so; treat what it says about that call with caution and check the gameObject API reference. Each explanation has helpful and unhelpful buttons, which tell us how well it is working. Explaining a script uses your plan's AI allowance, the same as a message to the AI assistant; see The AI assistant.

On a phone

On a phone-sized screen the dialog fills the screen. The top bar holds ✕ (Cancel), the script name, which you can tap to rename, and Save; tap the row under it to add or change the description. The code fills the rest of the screen at a size that does not zoom the page, and long lines wrap. Explain is in the bar at the bottom, and the explanation opens in a sheet over the code. Drag the sheet's handle to move it between fully open, part-way and closed, or use Show code and Expand. Tapping a line reference lowers the sheet part-way so the highlighted lines show above it.

Editor Lua REPL

The REPL runs short pieces of Lua against the scene you currently have open. Open it from the Editor Lua REPL button at the bottom of the rail (in the rail's More editor controls (⋯) menu on smaller screens), with Cmd/Ctrl + Shift + L, or from the command palette entry Open editor Lua REPL. Code you run there is never attached to an object and never saved as a project script — the Lua session exists only while the dialog is open.

Because nothing is attached, the REPL does not see the runtime globals an object script gets. There is no gameObject, scene, input, or gameStorage. Instead it exposes a single global, editor:

CallWhat it does
editor.scene.list()Every authored object in the scene, as plain tables
editor.scene.get(id)One object by id, or nil if there is no such object
editor.scene.create(type, options)Adds a new object and returns its id
editor.scene.update(id, fields)Writes fields onto an existing object; returns whether anything changed
editor.scene.delete(id)Removes an object; returns whether it existed
editor.navigation.bake():await()Bakes the current navigation mesh and waits for completion
editor.navigation.stats()Returns the current bake statistics
editor.navigation.show() / hide()Shows or hides the navigation-mesh overlay
editor.navigation.findPath(from, to)Returns a path across the baked mesh, or nil
editor.log(message)Writes a line to the output pane

Whatever the snippet returns is pretty-printed as JSON in the output pane, so return editor.scene.list() is the quickest way to dump the whole scene. Navigation inspection is read-only in either REPL mode; bake is asynchronous, so use the exact :await() form shown above.

Inspect first, apply deliberately

The REPL is read-only until you say otherwise. list and get always work; create, update, and delete do nothing until you tick Apply scene changes, and they stay inert while a simulation is running. In read-only mode create returns nil and update/delete return false, so a dry run reads like the real thing minus the writes.

Creating and updating objects

create starts from the same default object the editor's own Add menu would produce, then applies your options. The accepted type names are cube, sphere, cylinder, capsule, empty, camera, ambientLight, directionalLight, pointLight, hemisphereLight, water, particleEmitter, guiLabel, guiPanel, guiImage, guiButton, guiSlider, guiProgressBar, and mesh, which needs a meshAssetId naming one of the project's assets. Any other name raises an error.

local id = editor.scene.create("cube", {
    name = "Crate",
    position = { x = 0, y = 2, z = 0 },
})

editor.log("created " .. tostring(id))
editor.scene.update(id, { motion = "dynamic" })

return editor.scene.get(id)

create takes any field scene_objects_create accepts for that type, including ones the default object leaves out, such as friction, restitution, parent_id (or parentId, the spelling get returns) and collisionType. Numbers are checked against the same bounds, and a parent or asset id must name an object in the scene or an asset in the project. A field that does not apply to the type, an out-of-range value, a value the editor would not keep, or an id raises an error listing every problem, and nothing is created. get and list see a new object as soon as create returns, so later lines of the same snippet can read it, update it, or parent to it.

update writes any field scene_objects_create accepts for that type, whether or not the object already carries it, so friction, restitution, parent_id (or parentId) and a GUI element's layout fields such as anchor, margin, widthMode and a panel's layoutMode all work on a fresh object. It ignores id and type — you cannot reassign an object's id or change what kind of object it is — and a 3D parent is never written onto a GUI element. A field that does not apply to the type is skipped silently, so update returning false usually means every field you passed was misspelled or does not apply to that type.

Applied changes are ordinary edits: creating, updating, and deleting all go through the editor's normal history and are saved like any other change, so Cmd/Ctrl + Z reverses a REPL edit exactly as it reverses one you made by hand.

The AI assistant and connected MCP clients can run the same ephemeral Lua against a scene you have open — see scripting_run_editor_lua in the MCP tool guide.

Version history

Undo only covers the current tab, and it is cleared when you reload. Version history keeps checkpoints on the server instead. A checkpoint is a copy of the whole project: every scene, object, material, script, shader, asset file and project setting. Restoring one puts all of it back, including assets you have since deleted or regenerated. The asset files checkpoints keep do not count toward your storage limit.

Open it with the Version history button in the dock (in the rail's More editor controls (⋯) menu on smaller screens), or with Open version history in the command palette. The list is newest first, and each entry shows what kind of checkpoint it is, when it was taken, who took it and how many objects it holds.

  • Save: type a name and press Save to take a checkpoint of the project as it is now. A checkpoint you save is pinned.
  • Restore: the project goes back to that checkpoint. A Before restore checkpoint of how it is now is taken first, so you can restore that to undo the restore. Every open editor on the project reloads. A restore is refused while the AI assistant is working on the project. The published game does not change until you publish again.
  • Pin: a pinned checkpoint is never pruned.
  • Delete: removes the checkpoint. The project itself is not changed.
  • Show changes: lists what has changed, without changing anything. See below.

Seeing what changed

The magnifying-glass button on a checkpoint opens its change view, which has two comparisons. Since this checkpoint (the default) compares the checkpoint with the project as it is now, which is exactly what restoring it would undo. Since the one before compares it with the checkpoint taken just before it. On a Before AI checkpoint, that shows what you and others changed before that AI turn started. For a project's first checkpoint, everything in it shows as added.

Changes are grouped into objects, scripts, shaders, materials, assets, scenes and project settings, with a count for each, and every row is marked Added, Changed or Removed. A changed object lists each field with its old and new value, such as position.x: 2 → 5, along with a new parent by name and moved in order when it changed places in the list. Inserting one object does not mark everything after it as moved. Scripts and shaders show the changed lines with three lines either side. An asset says new file when its file was regenerated or replaced. An object that is in the open scene has a select button, which selects it and moves the camera to it. When a section has too many changes to list, it says so at the end. Like Restore, the change view is part of the Creator and Studio plans.

In Since this checkpoint, the change view also marks the open scene in the viewport. Objects added since the checkpoint are outlined in green and changed ones in yellow. Wireframe ghosts show where objects stood at the checkpoint: red for one removed since, yellow for one moved, resized or reparented since. A legend under the comparison names the colours, and Show in viewport turns the marks off and on. They are hidden while a simulation runs, are never saved into the scene, and leave out GUI elements, which have no place in the 3D world.

Reviewing an AI turn

The AI chat's Review changes button opens this drawer on a single AI turn instead of the list. It shows what that turn changed, from its Before AI checkpoint to its After AI one, and marks each change as still as the assistant left it (with a checkbox), Edited since, Reverted, or Kept with the reason. Revert this turn, or Revert N selected after unticking some, takes back only those changes and keeps everything done since. See The AI assistant. Back returns to the list.

Checkpoints are also taken automatically: Before AI before every AI assistant turn, After AI when it ends, Before MCP before the first edit an MCP client makes in any 10-minute window, and Published for each publish, holding exactly what that release was built from. An automatic checkpoint is skipped if nothing has changed since the last one.

Version history is part of the Creator and Studio plans. On Free the drawer still lists any checkpoints the project has, and offers the upgrade. Studio keeps every checkpoint. On Creator, the checkpoints you save, publish checkpoints and pinned ones are kept forever; automatic ones are all kept for 48 hours, then one a day for 30 days. Nothing is pruned for 24 hours after a plan change. Before you leave Studio, the plan page lists, for each project, the automatic checkpoints that will be deleted, with a link that opens that project's version history so you can pin the ones you want to keep. Pinning still works in the 24 hours after you switch.

Project branches

Studio includes branches: isolated copies of a project's editable source where you can experiment before bringing changes into main. Select the branch chip at the top-left of the viewport to open Project branches. On main, type a name under New branch and choose Create. The copy includes every scene and its resources; conversations, published releases and run history are not copied.

The chip shows the current branch, with a Closed tag on a closed one; in the list, the current branch has a check mark. Choose Main or another branch in the list to switch; it opens the corresponding scene when possible, otherwise that project's initial scene. Branches also appear beneath main on the dashboard. You can edit and preview locally on a branch. Publishing and hosted multiplayer tests require merging into main first.

Review and merge

On a branch, choose Review changes to compare it with its starting checkpoint and see conflicts with main. Each conflict needs Keep main or Take branch. A choice takes the whole row, or one top-level project setting: it does not combine individual fields inside an object, Lua or shader source, arrays or nested settings. Reordering alone does not merge; main keeps the order of surviving rows.

Choose Merge into main, then confirm Merge branch. Merge saves main before the change, records the final branch and resulting main, and closes the branch. If either side changes after review, review again. Both projects must be free of active AI turns, every conflict must be resolved, and the combined result must have valid references. Published games and running rooms keep their existing releases until you publish main again.

Closed branches, history and storage

Close branch ends work without merging. Its source, files and history remain accessible under Closed branches, read-only. Main's version history contains the checkpoints before and after a merge; restoring one follows the usual whole-project restore rules. Branch base and applied-merge checkpoints cannot be deleted or pruned while branch history references them, even when unpinned.

Shared asset files count once toward storage. New files used only by a branch count too, including files retained by a closed branch. Closing a branch does not free that space; permanently deleting main removes the whole family. Files held only by checkpoints remain exempt.

After leaving Studio, existing branches remain readable and can still be closed; creating, editing or merging branches requires Studio. Archive/unarchive and delete/restore act on main's whole branch family. Moving that family to another account is not supported. Branches cannot be created from another branch or updated from main.

Command palette

Press Cmd/Ctrl + K, or click Editor commands at the bottom of the rail, to open the command palette. It searches every editor command by name and shows the shortcut for each one.

Editor hotkeys and the shortcuts the palette displays are generated from the same command definitions, so the palette cannot fall out of step with what the keyboard actually does. If you forget a shortcut, it is the canonical in-product guide — and the table above is the same list.