Class AppendElements
Contains functions for appending elements to meshes.
Inherited Members
Namespace: UnityEngine.ProBuilder.MeshOperations
Assembly: Unity.ProBuilder.dll
Syntax
public static class AppendElements
Methods
Name | Description |
---|---|
AppendFaces(ProBuilderMesh, Vector3[][], Color[][], Vector2[][], Face[], int[][]) | Appends a group of new faces to the ProBuilderMesh. |
AppendVerticesToEdge(ProBuilderMesh, IList<Edge>, int) | Inserts a number of new points on each edge in the specified set of edges. Points are evenly spaced out along the edge. |
AppendVerticesToEdge(ProBuilderMesh, Edge, int) | Inserts a number of new points on an edge. Points are evenly spaced out along the edge. |
AppendVerticesToFace(ProBuilderMesh, Face, Vector3[]) | Adds a set of points to a face and re-triangulates. Points are added to the nearest edge. |
AppendVerticesToFace(ProBuilderMesh, Face, Vector3[], bool) | Adds a set of points to a face and re-triangulates. |
Bridge(ProBuilderMesh, Edge, Edge, bool) | Inserts a face between two edges. This is the equivalent of the Bridge Edges action. |
CreatePolygon(ProBuilderMesh, IList<int>, bool) | Creates a new face that connects existing vertices. |
CreatePolygonWithHole(ProBuilderMesh, IList<int>, IList<IList<int>>) | Creates a new face by connecting existing vertices. |
CreateShapeFromPolygon(PolyShape) | Creates a custom polygon shape from a set of points on a plane. The points must be ordered. |
CreateShapeFromPolygon(ProBuilderMesh, IList<Vector3>, float, bool) | Rebuilds a mesh from an ordered set of points. |
CreateShapeFromPolygon(ProBuilderMesh, IList<Vector3>, float, bool, IList<IList<Vector3>>) | Rebuilds a mesh from an ordered set of points. |
DuplicateAndFlip(ProBuilderMesh, Face[]) | Duplicates and reverses the winding direction for each face. |
InsertVertexInFace(ProBuilderMesh, Face, Vector3) | Adds a set of points to a face and retriangulates. Points are added to the nearest edge. This is the equivalent of the Connect Vertices action. |
InsertVertexInMesh(ProBuilderMesh, Vector3, Vector3) | Adds a point to a mesh. |
InsertVertexOnEdge(ProBuilderMesh, Edge, Vector3) | Inserts a new point on an edge. Points are evenly spaced out along the edge. This is the equivalent of the Subdivide Edges action. |