Api Editor EditorScene
class

EditorScene

public static abstract sealed class EditorScene

Properties

Name Type Description
PlayMode static Boolean Should the game start in play mode when hitting play, instead of playing the active scene.
GizmoSettings static SceneSettings
Selection static SelectionSystem

Methods

static Void RestoreState()
static Void NewScene()
static Void Open()
static Void OpenScene(SceneFile resource)

Opens the given scene file for editing, if it's not already open.

static Void OpenPrefab(PrefabFile resource)

Opens the given prefab file for editing, if it's not already open.

static Void SaveSession()
static Void SaveSessionAs()
static Void SaveAllSessions()
static Void Discard()
static Void TogglePlay()

Toggles play mode.

static Void PlayMap(Asset asset)
static Void Play(SceneEditorSession session = null)
static Void Play(Boolean playMode, SceneEditorSession playableSession = null)
static Void Stop()
static Void SceneEditorTick()

Called once a frame to keep the game camera in sync with the main camera in the editor scene

static Void LoadFromResource(GameResource resource)
static Void UpdatePrefabInstances(PrefabFile prefab)

Update any/all instances of a prefab in any open sessions

static Void Cut()
static Void SelectAll()
static Void Copy()
static Void Paste()
static Void PasteAt(SceneTraceResult tr)
static Void PasteAsChild()
static Void PlaceBoundsOnSurface(IEnumerable<GameObject> gos, Vector3 position, Vector3 normal)
static Void TakeHighResScreenshot(Int32 width, Int32 height)

Capture a high resolution screenshot using the active scene camera.

Assembly: Sandbox.Tools Namespace: Editor Full Name: Editor.EditorScene