public enum WhenToShift
When using a
Standard Hierarchy World Shifter
determine when to execute all code related to the world shift. Note, options other
than 'Update' will only be used if the World
Shifter's Perform Shift In Single Frame option is disabled.
When a player is set to be shifted, if a PlayerMover is present on the Player, it's
MovePlayerByAmount coroutine will be used to move
the player, and will begin execution at the time specified by this field. Immediately
after this coroutine finishes, the transforms of the
world will be shifted at once. If your PlayerMover changes the execution frame (from
Update to FixedUpdate) for instance, that may cause
issues, so be careful.
Name | Value | Description |
---|---|---|
FixedUpdate | 0 | Perform the shift during Fixed Update. |
Update | 1 | Perform the shift during Update. |
EndOfFrame | 2 | Perform the shift during the End of Frame. |