Method OnTargetObjectWarped
OnTargetObjectWarped(Transform, Vector3)
Call this to notify all virtual cameras that may be tracking a target that the target's position has suddenly warped to somewhere else, so that the virtual cameras can update their internal state to make the camera warp seamlessly along with the target.
All virtual cameras are iterated so this call will work no matter how many
are tracking the target, and whether they are active or inactive.
Declaration
public static void OnTargetObjectWarped(Transform target, Vector3 positionDelta)
Parameters
Type | Name | Description |
---|---|---|
Transform | target | The object that was warped |
Vector3 | positionDelta | The amount the target's position changed |