UnityEditor.HandleUtility.Internal_PickRectObjects C# (CSharp) Method

Internal_PickRectObjects() static private method

static private Internal_PickRectObjects ( Camera cam, Rect rect, bool selectPrefabRoots ) : UnityEngine.GameObject[]
cam UnityEngine.Camera
rect UnityEngine.Rect
selectPrefabRoots bool
return UnityEngine.GameObject[]
        internal static GameObject[] Internal_PickRectObjects(Camera cam, Rect rect, bool selectPrefabRoots)
        {
            return INTERNAL_CALL_Internal_PickRectObjects(cam, ref rect, selectPrefabRoots);
        }

Usage Example

示例#1
0
		public static GameObject[] PickRectObjects(Rect rect, bool selectPrefabRootsOnly)
		{
			Camera current = Camera.current;
			rect = EditorGUIUtility.PointsToPixels(rect);
			rect.x /= (float)current.pixelWidth;
			rect.width /= (float)current.pixelWidth;
			rect.y /= (float)current.pixelHeight;
			rect.height /= (float)current.pixelHeight;
			return HandleUtility.Internal_PickRectObjects(current, rect, selectPrefabRootsOnly);
		}