Class GameSettings
The main game engine configuration service. Loads and applies game configuration.
Assembly: FlaxEngine.dll
File: Engine/Core/Config/GameSettings.h
Syntax
public class GameSettings : public SettingsBase
Fields
AndroidPlatform
Audio
CompanyName
CopyrightNotice
The copyright note used for content signing (eg. source code header).
Declaration
public String CopyrightNotice
Field Value
String
|
CustomSettings
The custom settings to use with a game. Can be specified by the user to define game-specific options and be used by the external plugins (used as key-value pair).
Declaration
public Dictionary<String, Guid> CustomSettings
Field Value
Dictionary<String, Guid>
|
FirstScene
Reference to the first scene to load on a game startup.
Declaration
public Guid FirstScene = Guid::Empty
Field Value
Guid
|
GameCooking
Graphics
Icon
Input
iOSPlatform
LayersAndTags
LinuxPlatform
Localization
MacPlatform
Navigation
Network
NoSplashScreen
True if skip showing splash screen image on the game startup.
Declaration
public bool NoSplashScreen = false
Field Value
bool
|
Physics
ProductName
PS4Platform
PS5Platform
SplashScreen
Reference to the splash screen image to show on a game startup.
Declaration
public Guid SplashScreen = Guid::Empty
Field Value
Guid
|
Streaming
SwitchPlatform
Time
UWPPlatform
WindowsPlatform
XboxOnePlatform
XboxScarlettPlatform
Methods
Apply()
Applies the settings to the target system.
Declaration
public virtual void Apply() override
Overrides
Deserialize(DeserializeStream& stream, ISerializeModifier* modifier)
Deserializes object from the input stream.
Declaration
public virtual void Deserialize(DeserializeStream& stream, ISerializeModifier* modifier) final override
Parameters
DeserializeStream
stream
The input stream. |
ISerializeModifier
modifier
The deserialization modifier object. Always valid. |
Overrides
Get()
Gets the instance of the game settings asset (null if missing). Object returned by this method is always loaded with valid data to use.
Declaration
public static GameSettings* Get()
Returns
GameSettings
|
Load()
Loads the game settings (including other settings such as Physics, Input, etc.).
Declaration
public static bool Load()
Returns
bool
True if failed, otherwise false. |