data_object Static Properties 19

AppId
UInt64
Steam AppId of S&box.
CheatsEnabled
bool
Editor
EditorSystem
Get the current editor if any. Will return null if we're not in the editor, or there is no active editor session.
FrameCount
UInt64
Number of engine frames since startup. Increments once at the start of every frame. Starts at 1, so a default frame stamp of 0 always reads as a frame that has passed.
IsConsoleApp
bool
True if running in a terminal like console, instead of a game window or editor.
IsDebug
bool
IsDedicatedServer
bool
True if this is a dedicated server
IsEditor
bool
True if running with the tools or editor attached
IsFocused
bool
Is the game window in focus?
IsHeadless
bool
True if running without a graphics window, such as in a terminal.
IsMicrophoneListening
bool
Returns true if the microphone is currently listening
IsMicrophoneRecording
bool
Returns true if the microphone is currently listening and actually hearing/capturing sounds
IsStandalone
bool
True if the game is running in standalone mode
IsUnitTest
bool
True if we're running the engine as part of a unit test
IsVR
bool
True if the game is running in VR mode
LanguageCode
string
The language code for the current language
RenderSettings
RenderSettings
Allows access to the RenderSettings singleton, which contains settings related to rendering in the game. You're only able to access this when in standalone mode. When accessing in the editor, or in sbox it will return null.
Version
string
The engine's version string
VersionDate
DateTime
The date of this version, as a UTC datetime.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.