s&
newspaperAbout
infoAbout s&box newspaperLatest News published_with_changesChanges mapRoadmap monitoringMetrics
gamesGames
sports_esportsBrowse Games rocketDiscover Games
business_centerWorkshop
sports_esportsGames landscapeMaps chairModels textureMaterials apparelClothing constructionMore..
forumForum docsDocs
docsDocumentation dashboardApi Reference schoolTutorials
inputLog in with Steam chevron_leftChange Language
简体中文EnglishРусскийEspañolPortuguês-BrasilDeutsch日本語FrançaisPolskiTürkçe한국어PirateItalianoไทย繁體中文УкраїнськаČeštinaNederlandsMagyarDanskSuomiSvenskaNorskΕλληνικάRomânăБългарскиTiếng ViệtBahasa IndonesiaEspañol-Latinoaméricaالعربية
Api
ISceneEditorSession
chevron_left API Reference
interface
ISceneEditorSession

Properties

data_objectHasUnsavedChangesdata_objectScenedata_objectSelectedGameObjectdata_objectSelectiondata_objectTransientFilesystem

Methods

remove_circleAddSelectionUndofunctionsAddUndofunctionsFrameTofunctionsGetSceneFolderremove_circleGetSelectionremove_circleOnEditLogremove_circleRecordChangefunctionsSavefunctionsUndoScope
ISceneEditorSession
interface Sandbox.Scene .
abstractSandbox.Engine

data_object Properties 5

HasUnsavedChanges
bool
True if this scene has unsaved changes
Scene
Scene
The scene for this session
SelectedGameObject
GameObject
If we have any gameobjects selected, return the first one
Selection
SelectionSystem
Selection system for this session
TransientFilesystem
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.

functions Methods 9

AddSelectionUndo ()
obsolete
You have changed the editor's selection, add a new undo entry
AddUndo (name, undo, redo)
Add a new undo entry
FrameTo (box)
GetSceneFolder ()
SceneFolder
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.
GetSelection ()
obsoleteIEnumerable`1
Gets the current selection from the editor
OnEditLog (name, source)
obsolete
RecordChange (property)
obsolete
Tell undo about this property change
Save (forceSaveAs)
Save this scene to disk
UndoScope (name)
ISceneUndoScope
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter