API

Function AnimationGroupMergeAnimationGroups

  • Merge the array of animation groups into a new animation group

    Parameters

    • animationGroups: AnimationGroup[]

      List of animation groups to merge

    • disposeSource: boolean = true

      If true, animation groups will be disposed after being merged (default: true)

    • normalize: boolean = false

      If true, animation groups will be normalized before being merged, so that all animations have the same "from" and "to" frame (default: false)

    • Optionalweight: number

      Weight for the new animation group. If not provided, it will inherit the weight from the first animation group of the array

    Returns Nullable<AnimationGroup>

    The new animation group or null if no animation groups were passed