Scene Setup
Runtime Studio normally uses two scenes:
- An overlay scene containing the Runtime Studio object and editor UI.
- An editing scene containing the level content players can change.
Both scenes must be included in Build Settings. The overlay scene can be loaded on top of the gameplay scene, while Player Editable Scene points to the scene whose content should appear in the Hierarchy and Project panels.
Create the host object
- Create an empty GameObject in the scene that owns the runtime editor.
- Add the
RuntimeStudioEditorcomponent. - Assign the
Player Editable Scenefield when the editable content lives in another scene. - Assign a
RuntimeStudioSettingsasset. - Assign an optional camera if Runtime Studio should control a dedicated editing camera.
The editor can use the active gameplay camera, but a dedicated camera makes free-camera movement and edit isolation easier to control.
When no camera is assigned, Runtime Studio uses its isolated edit camera or Camera.main. Assign a camera when the project needs an explicit camera for scene navigation and editing.