docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class TransformUtility

    Contains helper functions for working with transforms.

    Inheritance
    object
    TransformUtility
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)