The API is no longer being updated here until further notice. |
Creates an Animation within the AnimationGroup.
animation = AnimationGroup:CreateAnimation([animationType, name, inheritsFrom])
Arguments
- animationType
- string - Type of the animation to create, one of: Animation (default)[1], Translation, Rotation, Alpha, Scale, ControlPoints and Path
- name
- string - Desired global name that will be assigned as
_G[name]
, or nil to avoid creating a global reference - inheritsFrom
- string - Comma-separated list of names of XML animation templates to inherit from
Returns
- animation
- Animation - The created animation widget.
Notes
- The animation will act on the Region who is the AnimationGroup's parent.
- It appears that all animations involving moving a PlayerModel will fail silently. Alpha animations are the only animation type which will have any effect on these frames.
Patch changes
- Patch 3.1.0 (2009-04-14): Added.[2]
References
- ^ Chipzz 2018-12-10. WoWUIDev Discord, #irc-history.
- ^ zork 2010-09-22. 3.1.0 Animation roundup.