Class SelectionPicker
Provides functions for picking mesh elements in a view. This allows the Editor to either render a texture to test, or cast a ray.
Inherited Members
Namespace: UnityEngine.ProBuilder
Assembly: Unity.ProBuilder.dll
Syntax
public static class SelectionPicker
Methods
Name | Description |
---|---|
PickEdgesInRect(Camera, Rect, IList<ProBuilderMesh>, PickerOptions, float) | Picks the Edge objects contained within a rect (rectangular selection). |
PickFace(Camera, Vector3, ProBuilderMesh) | Returns the first face on a ProBuilder mesh that collides with the ray cast by ProBuilder, given a specific screen position and camera. |
PickFacesInRect(Camera, Rect, IList<ProBuilderMesh>, PickerOptions, float) | Picks the Face objects contained within a rect (rectangular selection). |
PickVerticesInRect(Camera, Rect, IList<ProBuilderMesh>, PickerOptions, float) | Picks the vertex indices contained within a rect (rectangular selection). |