s&
info
About
info
About s&box
newspaper
Latest News
published_with_changes
Changes
map
Roadmap
monitoring
Metrics
games
Games
sports_esports
Browse Games
explore
Discover Games
category
Workshop
sports_esports
Games
landscape
Maps
view_in_ar
Models
texture
Materials
apparel
Clothing
construction
More..
forum
Forum
menu_book
Learn
docs
Documentation
api
Api Reference
school
Tutorials
manage_search
Code Search
input
Log in with Steam
chevron_left
Change Language
简体中文
English
Русский
Español
Português-Brasil
Deutsch
日本語
Français
Polski
Türkçe
한국어
Pirate
Italiano
ไทย
繁體中文
Українська
Čeština
Nederlands
Magyar
Dansk
Suomi
Svenska
Norsk
Ελληνικά
Română
Български
Tiếng Việt
Bahasa Indonesia
Español-Latinoamérica
العربية
Api
Globals
Application
chevron_left
Globals
class
Application
Static Properties
data_object
AppId
data_object
CheatsEnabled
data_object
Editor
data_object
IsConsoleApp
data_object
IsDebug
data_object
IsDedicatedServer
data_object
IsEditor
data_object
IsFocused
data_object
IsHeadless
data_object
IsMicrophoneListening
data_object
IsMicrophoneRecording
data_object
IsStandalone
data_object
IsUnitTest
data_object
IsVR
data_object
LanguageCode
data_object
RenderSettings
data_object
Version
data_object
VersionDate
Application
class
Sandbox
.
static
sealed
abstract
Sandbox.Engine
data_object
Static Properties
18
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.
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.