public class MoveTransformOnWorldShift : MonoBehaviour
A MonoBehaviour that can be added to a game object in order to move a transform not
included in the World's hierarchy when the
World is shifted. The move will be carried out either before or after the World has
been
shifted, depending on how 'Move Before World Shift' is setup.
If you need to move multiple Transforms, consider using the
MoveTransformsOnWorldShift
class instead.
Move Before World Shift | bool |
If true, the transform will be moved before the world shift occurs. If false, the
transform will be moved after the world shift
occurs (i.e. all transforms associated with the World have been moved).
|
Transform To Move | Transform |
The transform to move. If null, the transform of the game object this script is attached to will be used. |
World IDs To Filter | int[] |
A set of World IDs which you can use to filter by. If set, the transform will only be moved when the World passed into the method has an ID that matches one of the IDs set here. If no IDs are set (length = 0), all Worlds will trigger a move. Note however, this will only matter when multiple Worlds utilize the same World Shifter object that this script is subscribed to. If you only have one World using the World Shifter object, there is no need to specify a World ID. |