private static extern bool INTERNAL_CALL_FindClosestEdge(ref Vector3 sourcePosition, out NavMeshHit hit, int areaMask); [MethodImpl(MethodImplOptions.InternalCall), WrapperlessIcall]
public static bool FindClosestEdge(Vector3 sourcePosition, out NavMeshHit hit, int areaMask) { return(NavMesh.INTERNAL_CALL_FindClosestEdge(ref sourcePosition, out hit, areaMask)); }