class
Application
public static abstract sealed class Application Properties
| Name | Type | Description |
|---|---|---|
AppId static | UInt64 | Steam AppId of S&box. |
IsUnitTest static | Boolean | True if we're running the engine as part of a unit test |
IsHeadless static | Boolean | True if running without a graphics window, such as in a terminal. |
IsConsoleApp static | Boolean | True if running in a terminal like console, instead of a game window or editor. |
IsDedicatedServer static | Boolean | True if this is a dedicated server |
IsEditor static | Boolean | True if running with the tools or editor attached |
Version static | String | The engine's version string |
VersionDate static | DateTime | The date of this version, as a UTC datetime. |
IsStandalone static | Boolean | True if the game is running in standalone mode |
LanguageCode static | String | The language code for the current language |
IsVR static | Boolean | True if the game is running in VR mode |
IsDebug static | Boolean | |
IsMicrophoneListening static | Boolean | Returns true if the microphone is currently listening |
IsMicrophoneRecording static | Boolean | Returns true if the microphone is currently listening and actually hearing/capturing sounds |
IsFocused static | Boolean | Is the game window in focus? |
CheatsEnabled static | Boolean | |
RenderSettings static | 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. |
Editor static | EditorSystem | Get the current editor if any. Will return null if we're not in the editor, or there is no active editor session. |