Method CameraWasDisplaced
CameraWasDisplaced(ICinemachineCamera)
See whether the virtual camera has been moved nby the collider
Declaration
public bool CameraWasDisplaced(ICinemachineCamera vcam)
Parameters
| Type | Name | Description |
|---|---|---|
| ICinemachineCamera | vcam | The virtual camera in question. This might be different from the virtual camera that owns the collider, in the event that the camera has children |
Returns
| Type | Description |
|---|---|
| bool | True if the virtual camera has been displaced due to collision or target obstruction |