getAnimator
Returns the animation engine for this instance.
An animator can be obtained either from an individual instance (independent per-instance playback) or from the originating FilamentAsset (frame shared amongst all instances). The animator is owned by the asset — do not destroy it manually.
Load the asset's resources first. gltfio creates the animator while loading resources (it needs the animation buffer data), so this is only available after ResourceLoader.loadResources — or after an async load has reported completion. Calling it earlier throws; on Android it cannot be detected and returns an animator that crashes on use.
Throws
if the asset's resources have not been loaded yet.
Returns the animation engine for this instance.
An animator can be obtained either from an individual instance (independent per-instance playback) or from the originating FilamentAsset (frame shared amongst all instances). The animator is owned by the asset — do not destroy it manually.
Load the asset's resources first. gltfio creates the animator while loading resources (it needs the animation buffer data), so this is only available after ResourceLoader.loadResources — or after an async load has reported completion. Calling it earlier throws; on Android it cannot be detected and returns an animator that crashes on use.
Throws
if the asset's resources have not been loaded yet.
Returns the animation engine for this instance.
An animator can be obtained either from an individual instance (independent per-instance playback) or from the originating FilamentAsset (frame shared amongst all instances). The animator is owned by the asset — do not destroy it manually.
Load the asset's resources first. gltfio creates the animator while loading resources (it needs the animation buffer data), so this is only available after ResourceLoader.loadResources — or after an async load has reported completion. Calling it earlier throws; on Android it cannot be detected and returns an animator that crashes on use.
Throws
if the asset's resources have not been loaded yet.
Returns the animation engine for this instance.
An animator can be obtained either from an individual instance (independent per-instance playback) or from the originating FilamentAsset (frame shared amongst all instances). The animator is owned by the asset — do not destroy it manually.
Load the asset's resources first. gltfio creates the animator while loading resources (it needs the animation buffer data), so this is only available after ResourceLoader.loadResources — or after an async load has reported completion. Calling it earlier throws; on Android it cannot be detected and returns an animator that crashes on use.
Throws
if the asset's resources have not been loaded yet.
Returns the animation engine for this instance.
An animator can be obtained either from an individual instance (independent per-instance playback) or from the originating FilamentAsset (frame shared amongst all instances). The animator is owned by the asset — do not destroy it manually.
Load the asset's resources first. gltfio creates the animator while loading resources (it needs the animation buffer data), so this is only available after ResourceLoader.loadResources — or after an async load has reported completion. Calling it earlier throws; on Android it cannot be detected and returns an animator that crashes on use.
Throws
if the asset's resources have not been loaded yet.