Class UnityGameSettingsDefinition
Unity ScriptableObject-based game settings definition.
Provides a Unity-specific implementation of IGameSettingsDefinition for creating
configurable game settings assets. Supports various value types, validation ranges,
character limits, and storage configuration for persistent settings.
Inheritance
Namespace: Serenity.GameSettings.Installation.Settings
Assembly: Serenity.UnityGlobal.Infrastructure.dll
Syntax
public class UnityGameSettingsDefinition : ScriptableObject, IGameSettingsDefinition, IFoundationSettings
Constructors
UnityGameSettingsDefinition()
Declaration
public UnityGameSettingsDefinition()
Fields
AvoidResetToDefault
Declaration
public bool AvoidResetToDefault
Field Value
| Type | Description |
|---|---|
| bool | Whether this setting should be excluded from reset to default operations. |
CharacterLimit
Declaration
public int CharacterLimit
Field Value
| Type | Description |
|---|---|
| int | Maximum character length for String type values. |
DefaultValue
Declaration
public string DefaultValue
Field Value
| Type | Description |
|---|---|
| string | Default value for this setting when no saved value exists. |
Guid
Declaration
public string Guid
Field Value
| Type | Description |
|---|---|
| string | Global unique identifier (GUID) for this settings definition asset. |
Id
Declaration
public string Id
Field Value
| Type | Description |
|---|---|
| string | Unique identifier for this game setting. Used as a key to retrieve and store values. |
IsStoreable
Declaration
public bool IsStoreable
Field Value
| Type | Description |
|---|---|
| bool | Whether this setting should be persisted to storage. |
IsTranslatingValue
Declaration
public bool IsTranslatingValue
Field Value
| Type | Description |
|---|---|
| bool | Whether this setting's value is being translated. |
MaximumValue
Declaration
public string MaximumValue
Field Value
| Type | Description |
|---|---|
| string | Maximum allowed value for numeric types (Int, Float). |
MinimumValue
Declaration
public string MinimumValue
Field Value
| Type | Description |
|---|---|
| string | Minimum allowed value for numeric types (Int, Float). |
Options
Declaration
public ConfigurationEntry[] Options
Field Value
| Type | Description |
|---|---|
| ConfigurationEntry[] | Key-value pairs that define the available options for this setting. |
ValueType
Declaration
public GameSettingsValueType ValueType
Field Value
| Type | Description |
|---|---|
| GameSettingsValueType | Defines the data type of this game setting (Bool, Int, Float, String, or Selectable). |
selectableObjectValues
Declaration
public Object[] selectableObjectValues
Field Value
| Type | Description |
|---|---|
| Object[] | Array of Unity Objects that represent available selectable values. |
selectableValueTypeName
Declaration
public string selectableValueTypeName
Field Value
| Type | Description |
|---|---|
| string | Serialized type name for selectable value types when ValueType is Selectable. |