Class ConnectElements
Utility class for connecting edges, faces, and vertices.
Inherited Members
Namespace: UnityEngine.ProBuilder.MeshOperations
Assembly: Unity.ProBuilder.dll
Syntax
public static class ConnectElements
Methods
Name | Description |
---|---|
Connect(ProBuilderMesh, IEnumerable<Edge>) | Inserts new edges in order to connect a set of edges. If a face contains more than two edges to connect, this method inserts a new vertex at the center of the face and connects each edge to the center point. This is the equivalent of the Connect Edges action. |
Connect(ProBuilderMesh, IEnumerable<Face>) | Inserts new edges on a face starting from the center of each edge to a new vertex in the center of the face. This is the equivalent of the Connect Edges action. |
Connect(ProBuilderMesh, IList<int>) | Inserts edges connecting a list of indices. This is the equivalent of the Connect Edges action. |