docs.unity.cn
    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
    Generated by DocFX
    on Friday, June 23, 2023