PlatformHierarchyShuffler
A class in Root.Township, the global namespace.
Build-time bake step that moves chosen transforms under a new parent on one platform, then removes itself (or its whole object).
- Listed in Global namespace: P
- Inherits or implements
MonoBehaviour,IBuildRendererBakeable,IBuildBakeable
Constructors
| Member | What it is |
|---|---|
PlatformHierarchyShuffler() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
4 private and internal fields
| Member | What it is |
|---|---|
private Transform finalParent | The new parent for the targets. |
private bool isDestroyingThisGameObjectWhenDone | Whether to destroy the whole object after baking on the target platform. |
private PlatformFlags targetPlatform | Platforms this shuffle applies to. |
private Transform[] targets | Transforms to move. |