Method BuildGameObjects
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 | A scene representing a UsdStage to build Unity objects from.  | 
    
| GameObject | unityRoot | The root in the Unity scene under which GameObjects are built.  | 
    
| SdfPath | usdRoot | The path to the root in the USD scene where data is built from.  | 
    
| IEnumerable<SdfPath> | paths | A collection of paths in the USD scene.  | 
    
| PrimMap | map | An empty input map from USD prim paths to gameobjects.  | 
    
| SceneImportOptions | options | Options affecting the import of the USD data.  | 
    
Returns
| Type | Description | 
|---|---|
| PrimMap | A populated PrimMap containing mappings from USD prim paths to gameobjects.  | 
    
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.