Method SetPivot
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.
Declaration
public static void SetPivot(this ProBuilderMesh mesh, Vector3 worldPosition)
Parameters
Type | Name | Description |
---|---|---|
ProBuilderMesh | mesh | The target mesh. |
Vector3 | worldPosition | The new pivot position in world space. |