interface which is the container for meshes and materials and provide interface for animation controlling. Subinterface of component

Hierarchy

Methods

  • Change current animation if animation with specified name exist.

    Parameters

    Returns void

  • pause animation playback.

    Returns void

  • Start animation playback.

    Returns void

  • Set current animation playback position.

    Parameters

    • positionNs: number

      position in ns.

    Returns void

  • Returns string

    current set animation name (string).

  • Returns number

    current animation playback duration (long).

  • Returns AnimationMode

    current set animation mode (animationMode). Can be off loop once onceReversed fixed.

  • Returns number

    current animation playback position (long).

  • Returns current animation playback time offset from begin(0). Typycally equals animation position mod animation duration.

    Returns number

    animation playback time offset (long).

  • get materials for each sub geometry

    Returns Vector<Material>

    materials

  • Returns Mesh

    mesh (mesh).

  • returns material from mesh sub geometry with specified name if it exist, null otherwise

    Parameters

    • subGeometryName: string

      sub geometry name.

    Returns Material

    sub geometry material (material).

  • True if animation playback stop.

    Returns boolean

    animation playback active flag (boolean).

  • True if animation playback was started.

    Returns boolean

    animation playback active flag (boolean).

  • Returns boolean

    visibility flag

  • Set current animation playback time offset from begin(0). duration.

    Parameters

    • timeNs: number

      animation playback time offset.

    Returns void

  • set mesh for given mesh instance. Of some mesh was settled before need to re set all materials.

    Parameters

    • mesh: Mesh

      new mesh.

    Returns void

  • set for mesh sub geometry with specified name specified material if sub geometry with given name exists.

    Parameters

    • subGeometryName: string

      sub geometry name.

    • material: Material

      sub geometry material.

    Returns void

  • set mesh visibility flag. Will be overridden if entity with meshInstance component is child of entity with faceTracker component.

    Parameters

    • visible: boolean

    Returns void