internal static GameObject Internal_PickClosestGO(Camera cam, int layers, Vector2 position, GameObject[] ignore, GameObject[] filter, out int materialIndex) { return INTERNAL_CALL_Internal_PickClosestGO(cam, layers, ref position, ignore, filter, out materialIndex); }
public static GameObject PickGameObject(Vector2 position, out int materialIndex) { Camera current = Camera.current; int cullingMask = current.cullingMask; position = GUIClip.Unclip(position); position.y = (float)Screen.height - position.y - current.pixelRect.yMin; return(HandleUtility.Internal_PickClosestGO(current, cullingMask, position, out materialIndex)); }