Class ElementSelection
Provides helper functions for working with selected faces, edges, and vertices.
Inherited Members
Namespace: UnityEngine.ProBuilder.MeshOperations
Assembly: Unity.ProBuilder.dll
Syntax
public static class ElementSelection
Methods
Name | Description |
---|---|
FloodSelection(ProBuilderMesh, IList<Face>, float) | Recursively adds all faces touching any of the selected faces to the selection. This corresponds to the Grow Selection action. |
GetFaceLoop(ProBuilderMesh, Face[], bool) | Finds and returns a face loop. This is the equivalent of the Select Face Loop and Select Face Ring actions. |
GetFaceRingAndLoop(ProBuilderMesh, Face[]) | Finds and returns both a face ring and loop from the selected faces. This is the equivalent of the Select Face Loop and Select Face Ring actions. |
GetNeighborFaces(ProBuilderMesh, Edge, List<Face>) | Creates a list of Face objects where each face is connected to a specific Edge in the ProBuilderMesh. |
GetPerimeterEdges(ProBuilderMesh, IEnumerable<Face>) | Returns all the edges that are on the perimeter of this set of selected faces. |
GrowSelection(ProBuilderMesh, IEnumerable<Face>, float) | Expand the selected faces to include any face touching the perimeter edges. This corresponds to the Grow Selection action. |