TargetingLocatingModule.FindNearestTarget


Declaration

public Transform FindNearestTarget()

Description

Finds the nearest targetable transform within the camera's view frustum.

Returns

TransformThe transform that can be targeted, or null otherwise.