public abstract interface Sandbox.Scene.ISceneEditorSession
Methods
Showing 9 methods
public virtual void AddSelectionUndo()Obsolete
You have changed the editor's selection, add a new undo entry
Obsolete: This API member is obsolete.
public virtual void AddUndo(string name, System.Action undo, System.Action redo)
Add a new undo entry
public virtual void FrameTo(BBox& modreq(System.Runtime.InteropServices.InAttribute) box)
public virtual Editor.SceneFolder GetSceneFolder()
Get the folder for this scene. This is a folder in which we can store assets that are referenced by this scene. Things like envmap textures, lightmaps, baked data, etc.
public virtual System.Collections.Generic.IEnumerable`1<object> GetSelection()Obsolete
Gets the current selection from the editor
Obsolete: Use Selection
public virtual void OnEditLog(string name, object source)Obsolete
Obsolete: This API member is obsolete.
public virtual void RecordChange(Sandbox.SerializedProperty property)Obsolete
Tell undo about this property change
Obsolete: This API member is obsolete.
public virtual void Save(bool forceSaveAs)
Save this scene to disk
public virtual ISceneUndoScope UndoScope(string name)
No results match this filter.
Properties
Showing 5 properties
public virtual bool Sandbox.Scene.ISceneEditorSession.HasUnsavedChanges { get; set; }
True if this scene has unsaved changes
public virtual Sandbox.Scene Sandbox.Scene.ISceneEditorSession.Scene { get; set; }
The scene for this session
public virtual Sandbox.GameObject Sandbox.Scene.ISceneEditorSession.SelectedGameObject { get; set; }
If we have any gameobjects selected, return the first one
public virtual Sandbox.SelectionSystem Sandbox.Scene.ISceneEditorSession.Selection { get; set; }
Selection system for this session
public virtual Sandbox.BaseFileSystem Sandbox.Scene.ISceneEditorSession.TransientFilesystem { get; set; }
Get the filesystem in which temporary files can be created. These files can be used (and shipped) by a package, but won't be stored in source control. This is usually used for files that are expected to be re-generated at runtime by the package itself.
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | global |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.Scene.ISceneEditorSession |