Class MeshTransform
Functions for manipulating the transform of a mesh.
Inherited Members
Namespace: UnityEngine.ProBuilder.MeshOperations
Assembly: Unity.ProBuilder.dll
Syntax
public static class MeshTransform
Methods
Name | Description |
---|---|
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. |
FreezeScaleTransform(ProBuilderMesh) | Scales vertices and sets This is the equivalent of the Freeze Transform action. |
SetPivot(ProBuilderMesh, Vector3) | Sets the pivot point of a mesh in world space. The Transform component position property is set to worldPosition, while the mesh geometry does not move. This is the equivalent of the Set Pivot (Vertices) action. |