Method SetSharedVertexPosition
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.
Declaration
public static void SetSharedVertexPosition(this ProBuilderMesh mesh, int sharedVertexHandle, Vector3 position)
Parameters
Type | Name | Description |
---|---|---|
ProBuilderMesh | mesh | The mesh containing the vertices you want to modify. |
int | sharedVertexHandle | The shared (or common) index to set the vertex position of. |
Vector3 | position | The new position in model coordinates. |