Method GetCameraDisplacementDistance
GetCameraDisplacementDistance(CinemachineVirtualCameraBase)
See how far virtual camera has been moved by the confiner
Declaration
public float GetCameraDisplacementDistance(CinemachineVirtualCameraBase vcam)
Parameters
| Type | Name | Description |
|---|---|---|
| CinemachineVirtualCameraBase | vcam | The virtual camera in question. This might be different from the virtual camera that owns the confiner, in the event that the camera has children |
Returns
| Type | Description |
|---|---|
| float | True if the virtual camera has been repositioned |