Class MergeElements
Provides methods for merging multiple faces of a ProBuilderMesh to a single face.
Inherited Members
Namespace: UnityEngine.ProBuilder.MeshOperations
Assembly: Unity.ProBuilder.dll
Syntax
public static class MergeElements
Methods
Name | Description |
---|---|
Merge(ProBuilderMesh, IEnumerable<Face>) | Merges a collection of faces into a single face. This function does not perform any sanity checks: it just merges faces, so the caller must make sure that the input is valid. This method also removes duplicate vertices created as a result of merging previously common vertices. This is the equivalent of the Merge Faces action. |
MergePairs(ProBuilderMesh, IEnumerable<SimpleTuple<Face, Face>>, bool) | Merges each pair of faces into a single face. Indexes are combined, but otherwise the properties of the first face in the pair take precedence. This is the equivalent of the Merge Faces action. |