Class FilamentInstance
- java.lang.Object
-
- com.google.android.filament.gltfio.FilamentInstance
-
public class FilamentInstance extends java.lang.ObjectProvides access to a hierarchy of entities that have been instanced from a glTF asset.- See Also:
FilamentAsset,Animator,AssetLoader
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnimatorgetAnimator()Retrieves theAnimatorfor this instance.FilamentAssetgetAsset()int[]getEntities()Gets the list of entities for this instance, one for each glTF node.intgetRoot()Gets the transform root for the asset, which has no matching glTF node.
-
-
-
Method Detail
-
getAsset
@NonNull public FilamentAsset getAsset()
-
getRoot
public int getRoot()
Gets the transform root for the asset, which has no matching glTF node.
-
getEntities
@NonNull public int[] getEntities()
Gets the list of entities for this instance, one for each glTF node.All of these have a transform component. Some of the returned entities may also have a renderable component.
-
getAnimator
@NonNull public Animator getAnimator()
Retrieves theAnimatorfor this instance.
-
-