Parameters used when instantiating a scene object, including its parent hierarchy.
Example
// InstantiationParams is consumed by AssetManager.instantiate() to control // where the new scene objects are parented. Its constructor is protected, // so callers typically build a plain object shaped like InstantiationParams // and pass it through. constmodel = this.pluginSystem.findInterface(Editor.Model.IModel) asEditor.Model.IModel; constscene = model.project.scene; constassetManager = model.project.assetManager;
// Create a parent under which freshly-instantiated objects will be placed. constparent = scene.createSceneObject('InstantiationParent');
// Use with: await assetManager.instantiate(assets, params); // assets is an Editor.Assets.Asset[] resolved from AssetManager earlier. voidassetManager; console.log('InstantiationParams.parents length:', params.parents.length);
Parameters used when instantiating a scene object, including its parent hierarchy.
Example