Method CameraWasDisplaced
CameraWasDisplaced(ICinemachineCamera)
See whether the virtual camera has been moved nby the collider
선언
public bool CameraWasDisplaced(ICinemachineCamera vcam)
파라미터
타입 | 이름 | 설명 |
---|---|---|
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 |
반환
타입 | 설명 |
---|---|
bool | True if the virtual camera has been displaced due to collision or target obstruction |