Load a model into current viewer.
Signature:
loadModel(modelId: string, configOrOnProgress?: LoadModelConfig | ProgressFn, changeCamera?: boolean, islocal?: boolean, path?: string | IFile[]): Promise<string>;| Parameter | Description |
|---|---|
| modelId | The global unique ID to this model under developer account. |
| configOrOnProgress | LoadModelConfig | Config object for model loading. Accept config object or onProgress callback function. |
| changeCamera | |
| islocal | |
| path | string | |
Returns:
Promise<string>
A promise contains the model id.