useModel
Call Signature
Section titled “Call Signature”useModel(
url,extendLoader?):LoadedModel
Loads a glTF or VRM file, suspending until it is ready, as drei’s
useGLTF does but through three’s own loader, so a game ships one.
Cached by URL, or by the whole list for an array: useModel.preload
with the same argument warms the same entry.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
url |
string |
extendLoader? |
ModelLoaderExtension |
Returns
Section titled “Returns”Call Signature
Section titled “Call Signature”useModel(
urls,extendLoader?):LoadedModel[]
Loads a glTF or VRM file, suspending until it is ready, as drei’s
useGLTF does but through three’s own loader, so a game ships one.
Cached by URL, or by the whole list for an array: useModel.preload
with the same argument warms the same entry.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
urls |
string[] |
extendLoader? |
ModelLoaderExtension |