PlatformObjects.PlatformObjectSetup
A class in Root.Township, the global namespace.
A list of GameObjects turned on or off at bake time depending on the runtime platform.
- Listed in Global namespace: P
- Nested in
PlatformObjects
Constructors
| Member | What it is |
|---|---|
PlatformObjectSetup() | Creates a PlatformObjects.PlatformObjectSetup from runtime and targets. |
PlatformObjectSetup(PlatformFlags runtime, List<GameObject> targets) | Creates a PlatformObjects.PlatformObjectSetup from runtime and targets. |
Fields
4 private and internal fields
| Member | What it is |
|---|---|
private bool defaultIsInactive | If true, targets start inactive even on a matching platform. |
private bool isKeepingWhenNotValid | Serialized flag that nothing in this class reads. |
private PlatformFlags targetPlatforms | The platforms the targets are meant for. Defaults to Windows. |
private GameObject[] targets | The GameObjects to turn on or off. |
Methods
| Member | What it is |
|---|---|
void Bake() | Runs ProcessActiveTargets if the current platform is one of targetPlatforms, otherwise ProcessInactiveTargets. |
2 private and internal methods
Used in
Members of other types that take, return or hold a PlatformObjectSetup: