Method OnTransitionFromCamera
OnTransitionFromCamera(ICinemachineCamera, Vector3, float)
Notification that a new camera is being activated. This is sent to the currently active camera. Both may be active simultaneously for a while, if blending.
Declaration
void OnTransitionFromCamera(ICinemachineCamera fromCam, Vector3 worldUp, float deltaTime)
Parameters
Type | Name | Description |
---|---|---|
ICinemachineCamera | fromCam | The camera being deactivated. May be null. |
Vector3 | worldUp | Default world Up, set by the CinemachineBrain |
float | deltaTime | Delta time for time-based effects (ignore if less than 0) |