UnityEditor.HandleUtility.Internal_PickClosestGO C# (CSharp) Method

Internal_PickClosestGO() static private method

static private Internal_PickClosestGO ( Camera cam, int layers, Vector2 position, GameObject ignore, GameObject filter, int &materialIndex ) : GameObject
cam UnityEngine.Camera
layers int
position Vector2
ignore UnityEngine.GameObject
filter UnityEngine.GameObject
materialIndex int
return UnityEngine.GameObject
        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);
        }

Usage Example

示例#1
0
        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));
        }
All Usage Examples Of UnityEditor.HandleUtility::Internal_PickClosestGO