Class FilamentInstance


  • public class FilamentInstance
    extends java.lang.Object
    Provides 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
      Animator getAnimator()
      Retrieves the Animator for this instance.
      FilamentAsset getAsset()  
      int[] getEntities()
      Gets the list of entities for this instance, one for each glTF node.
      int getRoot()
      Gets the transform root for the asset, which has no matching glTF node.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • 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 the Animator for this instance.