PickRectObjects(Rect)
Pick GameObjects that lie within a specified screen rectangle.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor
public static GameObject[] PickRectObjects(Rect rect)
Parameters
A screen rectangle specified with pixel coordinates.
Returns
Type | Description |
|---|---|
| GameObject[] |
Remarks
This is useful for implementing multi-select tools that allow the user to drag a rectangle around the desired objects.