Skip to main content

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).

Constructors​

MemberWhat it is
PlatformHierarchyShuffler()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

4 private and internal fields
MemberWhat it is
private Transform finalParentThe new parent for the targets.
private bool isDestroyingThisGameObjectWhenDoneWhether to destroy the whole object after baking on the target platform.
private PlatformFlags targetPlatformPlatforms this shuffle applies to.
private Transform[] targetsTransforms to move.

Properties​

1 private and internal property
MemberWhat it is
private int IBuildRendererBakeable.SortingOrder { get; }Bake order, 1.

Methods​

2 private and internal methods
MemberWhat it is
private void IBuildRendererBakeable.Bake(bool isSaving)On the target platform, reparents every target under finalParent.
private void IBuildRendererBakeable.Clean()Destroys this object on the target platform when set to, otherwise just this component.