interface
ISceneEditorSession
public interface ISceneEditorSession Properties
| Name | Type | Description |
|---|---|---|
Scene virtual | Scene | The scene for this session |
HasUnsavedChanges virtual | Boolean | True if this scene has unsaved changes |
Selection virtual | SelectionSystem | Selection system for this session |
SelectedGameObject virtual | GameObject | If we have any gameobjects selected, return the first one |
TransientFilesystem virtual | BaseFileSystem | 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. |
Methods
virtual Void AddSelectionUndo() You have changed the editor's selection, add a new undo entry
virtual Void OnEditLog(String name, Object source) virtual Void FrameTo(InAttribute) box) virtual Void Save(Boolean forceSaveAs) Save this scene to disk
virtual Void RecordChange(SerializedProperty property) Tell undo about this property change
virtual Void AddUndo(String name, Action undo, Action redo) Add a new undo entry
virtual ISceneUndoScope UndoScope(String name) virtual IEnumerable<Object> GetSelection() Gets the current selection from the editor
virtual 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.