docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetPath

    GetPath(Transform)

    Returns a valid UsdPath for the given Unity GameObject.

    Declaration
    public static string GetPath(Transform unityObj)
    Parameters
    Type Name Description
    Transform unityObj
    Returns
    Type Description
    string
    Remarks

    Note that illegal characters are converted into legal characters, so invalid names may collide in the USD namespace.

    GetPath(Transform, Transform)

    Returns a valid UsdPath for the given Unity GameObject, relative to the given root. For example: obj = /Foo/Bar/Baz, root = /Foo the result will be /Bar/Baz

    Declaration
    public static string GetPath(Transform unityObj, Transform unityObjRoot)
    Parameters
    Type Name Description
    Transform unityObj
    Transform unityObjRoot
    Returns
    Type Description
    string
    Remarks

    Note that illegal characters are converted into legal characters, so invalid names may collide in the USD namespace.

    In This Article
    Back to top
    Copyright © 2023 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)