Function AnimationGroupMergeAnimationGroups
-
AnimationGroupMergeAnimationGroups(
animationGroups: AnimationGroup[],
disposeSource?: boolean,
normalize?: boolean,
weight?: number,
): Nullable<AnimationGroup>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: numberWeight 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
- animationGroups: AnimationGroup[]
Merge the array of animation groups into a new animation group