Class TransformUtility | ProBuilder | 4.3.1
docs.unity3d.com
    Show / Hide Table of Contents

    Class TransformUtility

    Helper functions for working with transforms.

    Inheritance
    Object
    TransformUtility
    Namespace: UnityEngine.ProBuilder
    Syntax
    public static class TransformUtility

    Methods

    InverseTransformVertex(Transform, Vertex)

    Transform 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)

    Transform 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.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023