CinemachineCollider.IsTargetObscured Method

Cinemachine

CinemachineColliderIsTargetObscured Method

See wheter an object is blocking the camera's view of the target

Namespace:  Cinemachine
Assembly:  Cinemachine (in Cinemachine.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
public bool IsTargetObscured(
	ICinemachineCamera vcam
)
function IsTargetObscured(vcam);

Parameters

vcam
Type: CinemachineICinemachineCamera
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

Return Value

Type: Boolean
True if something is blocking the view
See Also