Class HierarchyBuilder | USD | 2.0.0-exp.1
docs.unity3d.com
    Show / Hide Table of Contents

    Class HierarchyBuilder

    A collection of methods for building the USD scene hierarchy in Unity.

    Inheritance
    Object
    HierarchyBuilder
    Namespace: Unity.Formats.USD
    Syntax
    public static class HierarchyBuilder

    Methods

    BuildGameObjects(Scene, GameObject, SdfPath, IEnumerable<SdfPath>, PrimMap, SceneImportOptions)

    Map all UsdPrims and build Unity GameObjects, reconstructing the parent relationship.

    Declaration
    public static PrimMap BuildGameObjects(Scene scene, GameObject unityRoot, SdfPath usdRoot, IEnumerable<SdfPath> paths, PrimMap map, SceneImportOptions options)
    Parameters
    Type Name Description
    Scene scene
    GameObject unityRoot
    SdfPath usdRoot
    IEnumerable<SdfPath> paths
    PrimMap map
    SceneImportOptions options
    Returns
    Type Description
    PrimMap
    Remarks

    When forceRebuild is true, game objects will be destroyed and recreated. If buildHierarchy is false, the primMap will be populated, but missing game objects will not be created.

    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