Method CenterPivot
CenterPivot(ProBuilderMesh, int[])
Centers the mesh pivot at the average of a set of vertex positions.
This is the equivalent of the Center Pivot action.
Declaration
public static void CenterPivot(this ProBuilderMesh mesh, int[] indexes)
Parameters
Type | Name | Description |
---|---|---|
ProBuilderMesh | mesh | The target mesh. |
int[] | indexes | The array of indices representing the positions to average in order to find the new pivot. |