SettingBasedToggler
A class in Root.Township, Alta.Utilities.
Component that turns its GameObject on or off to match the current player mode and a set of expected game setting values. Client side.
- Listed in Utilities and other Alta namespaces
- Inherits or implements
MonoBehaviour
Constructors
| Member | What it is |
|---|---|
SettingBasedToggler() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
3 private and internal fields
| Member | What it is |
|---|---|
private BoolSettingValue[] expectedBoolValues | Bool setting values that must all hold. |
private PlayerMode expectedModes | Player modes the object is shown in. Default all. |
private StringSettingValue[] expectedStringValues | String setting values that must all hold. |