PlayerAdjustableHeightFixerSettings
A class in Root.Township, the global namespace.
Settings asset for the height assist accessibility option: a list of height offsets and the one the player has picked, saved in game settings.
- Listed in Global namespace: P
- Inherits or implements
ScriptableObject - Attributes
CreateAssetMenu
Constructors
| Member | What it is |
|---|---|
PlayerAdjustableHeightFixerSettings() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
2 private and internal fields
Properties
Methods
3 private and internal methods
| Member | What it is |
|---|---|
private void SaveHeight() | Writes the selected index to the game settings and saves them. |
private void SetupHeight() | On first use, loads the index from settings or falls back to the zero height option. |
private void UpdateSettings(GameSettings settings) | On settings change, picks the saved index, or the zero height option if accessibility features are off. |
Used in
Members of other types that take, return or hold a PlayerAdjustableHeightFixerSettings: