Class HierarchyBuilder
A collection of methods for building the USD scene hierarchy in Unity.
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.