Class VertexPositioning
Contains a set of commonly used functions for modifying mesh positions.
Inherited Members
Namespace: UnityEngine.ProBuilder
Assembly: Unity.ProBuilder.dll
Syntax
public static class VertexPositioning
Methods
Name | Description |
---|---|
SetSharedVertexPosition(ProBuilderMesh, int, Vector3) | Takes a SharedVertex index (index of the triangle in the sharedIndexes array), and changes its vertices to a new position in model space coordinates. Use sharedIndexes and UnityEditor.ArrayUtility.IndexOf<T>(T[], T) to get a shared (or common) index. |
TranslateVertices(ProBuilderMesh, IEnumerable<int>, Vector3) | Translates a set of vertices with an offset provided in local (model) coordinates. This applies the mesh positions to both the ProBuilderMesh and the Mesh. |
TranslateVertices(ProBuilderMesh, IEnumerable<Edge>, Vector3) | Translates a set of edges with an offset provided in local (model) coordinates. This applies the mesh positions to both the ProBuilderMesh and the Mesh. |
TranslateVertices(ProBuilderMesh, IEnumerable<Face>, Vector3) | Translates a set of faces with an offset provided in local (model) coordinates. This applies the mesh positions to both the ProBuilderMesh and the Mesh. |
TranslateVerticesInWorldSpace(ProBuilderMesh, int[], Vector3) | Translates a set of vertices with a world space offset. This applies the mesh positions to both the ProBuilderMesh and the Mesh. |
VerticesInWorldSpace(ProBuilderMesh) | Returns a copy of a mesh positions array transformed into world coordinates. |