The API is no longer being updated here until further notice. |
Creates a new Animation within the AnimationGroup.
animation = AnimationGroup:CreateAnimation( "animationType" [, "name" [, "inheritsFrom"] ] )
Arguments
- animationType
- String - Type of the animation to create, one of: Animation, 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
- Widget - Local reference to the created animation object
Notes
- The animation will act on the Region who is the AnimationGroup's parent.
- It appears that all animations involving moving a PlayerModel frame 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.[1]
References
- ^ zork 2010-09-22. 3.1.0 Animation roundup.