Lens Scripting API

    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

    Index

    Constructors

    Methods

    • Parameters

      Returns void

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

      Returns boolean

    • Parameters

      Returns void

    • Returns void

    • Parameters

      • Optionaltime: number

      Returns void

    • Parameters

      • Optionaltime: number
      • Optionalpreserve: boolean

      Returns void

      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.

    MMNEPVFCICPMFPCPTTAAATR