s&box docs

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

Properties

Showing 5 properties

public virtual bool Sandbox.Scene.ISceneEditorSession.HasUnsavedChanges { get; set; }

True if this scene has unsaved changes

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.

Metadata

FieldValue
Namespaceglobal
Typeclass
AssemblySandbox.Engine
Doc IDT:Sandbox.Scene.ISceneEditorSession

On this page