static private Internal_PickRectObjects ( |
||
cam | ||
rect | ||
selectPrefabRoots | bool | |
return | UnityEngine.GameObject[] |
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); }