Class TransformUtility
Contains helper functions for working with transforms.
Inherited Members
Namespace: UnityEngine.ProBuilder
Assembly: Unity.ProBuilder.dll
Syntax
public static class TransformUtility
Methods
InverseTransformVertex(Transform, Vertex)
Transforms a vertex from world space to local space.
Declaration
public static Vertex InverseTransformVertex(this Transform transform, Vertex vertex)
Parameters
Type | Name | Description |
---|---|---|
Transform | transform | The transform to apply. |
Vertex | vertex | A world space vertex. |
Returns
Type | Description |
---|---|
Vertex | A new vertex in transform coordinate space. |
TransformVertex(Transform, Vertex)
Transforms a vertex into world space.
Declaration
public static Vertex TransformVertex(this Transform transform, Vertex vertex)
Parameters
Type | Name | Description |
---|---|---|
Transform | transform | The transform to apply. |
Vertex | vertex | A model space vertex. |
Returns
Type | Description |
---|---|
Vertex | A new vertex in world coordinate space. |