Class UISetting_Spacing
UISetting subclass that only serves as spacing between other settings. Can be used to create groups of settings that are visually separated.
Namespace: AS2.UI
Assembly: .dll
Syntax
public class UISetting_Spacing : UISetting
Constructors
UISetting_Spacing(GameObject, Transform, string)
Declaration
public UISetting_Spacing(GameObject go, Transform parentTransform, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | go | |
| Transform | parentTransform | |
| string | name |
Fields
id
Declaration
protected static int id
Field Value
| Type | Description |
|---|---|
| int |
Methods
ClearRefs()
Clears all subclass-specific callback events.
Declaration
protected override void ClearRefs()
Overrides
GetValueString()
Access to the current value.
Declaration
public override string GetValueString()
Returns
| Type | Description |
|---|---|
| string | The current value of the setting as a string. |
Overrides
LockSetting()
Locks the setting to prevent changes.
Declaration
protected override void LockSetting()
Overrides
SetInteractableState(bool)
Sets the setting's interactable state.
Declaration
protected override void SetInteractableState(bool interactable)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | interactable | The new interactable state. |
Overrides
SetValueString(string)
The inverse of GetValueString(). If calling both methods after each other, nothing should change.
Declaration
public override void SetValueString(string input)
Parameters
| Type | Name | Description |
|---|---|---|
| string | input | String representation of the setting's new value. |
Overrides
UnlockSetting()
Unlocks the setting to allow changes again after locking.
Declaration
protected override void UnlockSetting()