Manager

class Communicator.Animation.Manager()

Top-level interface for the animation system.


Methods

clear

Manager.clear()

Removes all players from control of the manager.

Return type

void

createPlayer

Manager.createPlayer(animation)

Creates a new animation player for the supplied animation.

Arguments
Return type

Player()

removePlayer

Manager.removePlayer(player)

Removes the provided player from control of the manager. Returns true is a player was removed

Arguments
Return type

boolean

removePlayerByIndex

Manager.removePlayerByIndex(index)

Removes the player at the provided index from control of the manager. Returns true if a player was removed

Arguments
  • index (number()) –

Return type

boolean

setTickInterval

Manager.setTickInterval(milliseconds)

Sets the interval at which animations are updated.

Arguments
  • milliseconds (number()) – number of milliseconds between update intervals

Return type

void