Unity Engine documentationScript ReferenceUnity.U2D.PhysicsPhysicsQueryPhysicsQuery.WorldCastModeClosestReturn only the closest hit.Read time 1 minuteLast updated a month agoDefinition Type: Field Namespace: Unity.U2D.Physics Assembly: UnityEngine.PhysicsCore2DModule Closest = 0