Method PickFacesInRect
PickFacesInRect(Camera, Rect, IList<ProBuilderMesh>, PickerOptions, float)
Picks the Face objects contained within a rect (rectangular selection).
Declaration
public static Dictionary<ProBuilderMesh, HashSet<Face>> PickFacesInRect(Camera cam, Rect rect, IList<ProBuilderMesh> selectable, PickerOptions options, float pixelsPerPoint = 1)
Parameters
Type | Name | Description |
---|---|---|
Camera | cam | Use this camera to evaluate whether any face object(s) are inside the |
Rect | rect | Rect is in GUI space, where 0,0 is the top left of the screen, and |
IList<ProBuilderMesh> | selectable | The collection of objects to check for selectability. ProBuilder verifies whether these objects fall inside the |
PickerOptions | options | The options that define whether to include mesh elements that are hidden and whether to consider elements that only partially fall inside the |
float | pixelsPerPoint | Scale the render texture to match |
Returns
Type | Description |
---|---|
Dictionary<ProBuilderMesh, HashSet<Face>> | A dictionary of ProBuilderMesh and Face objects that are in the selection |