Function: useAnimator()
useAnimator(
modelOrAsset
?):FilamentAnimator
|undefined
Creates a animator for the given FilamentAsset
or FilamentInstance
.
Parameters
• modelOrAsset?: FilamentInstance
| FilamentAsset
| FilamentModel
Returns
FilamentAnimator
| undefined
Note
For each asset/instance you should only have one animator.