API ReferenceEditor
EditorSceneclass
object→EditorScene
Methods26
Showing 26 methods
public static void Copy()
Returns:
void—public static void Cut()
Returns:
void—public static void Discard()
Returns:
void—public static void LoadFromResource(Sandbox.GameResource resource)
| Parameter | Type | Description |
|---|---|---|
| resource | GameResource | — |
Returns:
void—public static void NewScene()
Returns:
void—public static void Open()
Returns:
void—public static void OpenPrefab(Sandbox.PrefabFile resource)
Opens the given prefab file for editing, if it's not already open.
| Parameter | Type | Description |
|---|---|---|
| resource | PrefabFile | — |
Returns:
void—public static void OpenScene(Sandbox.SceneFile resource)
Opens the given scene file for editing, if it's not already open.
| Parameter | Type | Description |
|---|---|---|
| resource | SceneFile | — |
Returns:
void—public static void Paste()
Returns:
void—public static void PasteAsChild()
Returns:
void—public static void PasteAt(Sandbox.SceneTraceResult tr)
| Parameter | Type | Description |
|---|---|---|
| tr | SceneTraceResult | — |
Returns:
void—public static void PasteSpecial()
Returns:
void—public static void PlaceBoundsOnSurface(System.Collections.Generic.IEnumerable`1<Sandbox.GameObject> gos, Vector3 position, Vector3 normal)
| Parameter | Type | Description |
|---|---|---|
| gos | IEnumerable<GameObject> | — |
| position | Vector3 | — |
| normal | Vector3 | — |
Returns:
void—public static void RestoreState()
Returns:
void—public static void SaveAllSessions()
Returns:
void—public static void SaveSession()
Returns:
void—public static void SaveSessionAs()
Returns:
void—public static void SceneEditorTick()
Called once a frame to keep the game camera in sync with the main camera in the editor scene
Returns:
void—public static void SelectAll()
Returns:
void—public static void Stop()
Returns:
void—public static void TakeHighResScreenshot(int width, int height)
Capture a high resolution screenshot using the active scene camera.
| Parameter | Type | Description |
|---|---|---|
| width | int | — |
| height | int | — |
Returns:
void—public static void TogglePlay()
Toggles play mode.
Returns:
void—public static void UpdatePrefabInstances(Sandbox.PrefabFile prefab)
Update any/all instances of a prefab in any open sessions. Two passes are needed so that changes propagate through prefab dependency chains regardless of iteration order (e.g. PrefabA → PrefabC → PrefabB).
| Parameter | Type | Description |
|---|---|---|
| prefab | PrefabFile | — |
Returns:
void—No results match this filter.
Properties3
Showing 3 properties
public static Sandbox.Gizmo.SceneSettings Editor.EditorScene.GizmoSettings { get; set; }
public static bool Editor.EditorScene.PlayMode { get; set; }
Should the game start in play mode when hitting play, instead of playing the active scene.
Returns:
bool—public static Sandbox.SelectionSystem Editor.EditorScene.Selection { get; set; }
No results match this filter.