Controlling groups of tweens

Using the TWEEN singleton to manage your tweens can cause issues in large apps with many components. In these cases, you may want to create your own smaller groups of tween

Constructors

Methods

  • Parameters

    • Rest...tweens: Tween<any>[]

    Returns void

  • Return true if all tweens in the group are not paused or playing.

    Returns boolean

  • Parameters

    • Rest...tweens: Tween<any>[]

    Returns void

  • Returns void

  • Parameters

    • Optionaltime: number

    Returns void

  • Deprecated

    The preserve parameter is now defaulted to true and will be removed in a future major release, at which point all tweens of a group will always be preserved when calling update. To migrate, always use group.add(tween) or group.remove(tween) to manually add or remove tweens, and do not rely on tweens being automatically added or removed.

    Parameters

    • Optionaltime: number
    • Optionalpreserve: boolean

    Returns void