A class in Root.Township, the global namespace.
Scriptable object listing ControllerActionModes, looked up by ControllerModeType.
Constructors
| Member | What it is |
|---|
ControllerModeSettings() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
2 private and internal fields
Properties
Methods
| Member | What it is |
|---|
void AddMode() | Adds a new empty mode to the list. |
ControllerActionMode GetMode(ControllerModeType modeType) | Returns the mode of the given type, or null with a warning. |
ControllerActionMode GetModeAt(int index) | Returns the mode at the given list index. |
void RemoveMode(int indexToRemove) | Removes the mode at the given index. |
2 private and internal methods
| Member | What it is |
|---|
private void InitializeDictionary() | Builds modesMap from the list. |
private void OnValidate() | Editor: logs an error if two modes share a type. |
Used in
Members of other types that take, return or hold a ControllerModeSettings: