s&
About
The Project
infoAbout s&box mapRoadmap monitoringMetricsEngine startup and usage numbers
Updates
newspaperLatest News published_with_changesChangesRelease-by-release changelog
Games
Browse Games Discover Games
gamejamslive now

Game Jam III

Ends Fri 25 Sep
ThemeOne More Round

The jam is running. Build something, or play the entries.

£50,000
prizepool
View the jam
Workshop
Playable
sports_esportsGamesStandalone games and gamemodes
Assets
landscapeMaps view_in_arModels textureMaterials apparelClothing
appsEverythingEvery asset type in one list
Forum
Learn
Documentation
rocket_launchGetting Started docsDocumentation apiAPI Reference
Resources
schoolTutorials manage_searchCode Search
inputLog in with Steam
Api
Editor Classes
EditorScene
chevron_left Editor Classes
class
EditorScene

Static Properties

data_objectGizmoSettingsdata_objectPlayModedata_objectSelection

Static Methods

functionsCopyfunctionsCutfunctionsDiscardfunctionsLoadFromResourcefunctionsNewScenefunctionsOpenfunctionsOpenPrefabfunctionsOpenScenefunctionsPastefunctionsPasteAsChildfunctionsPasteAtfunctionsPasteSpecialfunctionsPlaceBoundsOnSurfacefunctionsPlayfunctionsPlayMapfunctionsRestoreStatefunctionsSaveAllSessionsfunctionsSaveSessionfunctionsSaveSessionAsfunctionsSceneEditorTickfunctionsSelectAllfunctionsStopfunctionsTakeHighResScreenshotfunctionsTogglePlayfunctionsUpdatePrefabInstances
EditorScene
class Editor .
staticsealedabstractSandbox.Tools

data_object Static Properties 3

GizmoSettings
SceneSettings
PlayMode
bool
Should the game start in play mode when hitting play, instead of playing the active scene.
Selection
SelectionSystem

functions Static Methods 25

Copy ()
Cut ()
Discard ()
LoadFromResource (resource)
NewScene ()
Open ()
OpenPrefab (resource)
Opens the given prefab file for editing, if it's not already open.
OpenScene (resource)
Opens the given scene file for editing, if it's not already open.
Paste ()
PasteAsChild ()
PasteAt (tr)
PasteSpecial ()
PlaceBoundsOnSurface (gos, position, normal)
Play (session)
PlayMap (asset)
RestoreState ()
SaveAllSessions ()
SaveSession ()
SaveSessionAs ()
SceneEditorTick ()
Called once a frame to keep the game camera in sync with the main camera in the editor scene
SelectAll ()
Stop ()
TakeHighResScreenshot (width, height)
Capture a high resolution screenshot using the active scene camera.
TogglePlay ()
Toggles play mode.
UpdatePrefabInstances (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).
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.
Facepunch
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter