AnimationClip
Represents all types of animation data that the Roblox animation system can consume.
| Memory category | Instances |
|---|
Member index 5
Description
The non-creatable AnimationClip instance type represents abstract animation data that can be fed to the Roblox animation system. KeyframeSequence and CurveAnimation are two current instance types that inherit from AnimationClip.
There are different ways to represent animation data. To simplify the use of Roblox's animation system, all such representations are their own instance types but inherit from the AnimationClip instance. Animation clips published to Roblox via the Animation Editor can be loaded into the Roblox Engine using an Animation instance.
History 20
- 731 Change Default of Priority from to
- 731 Change Default of Loop from to
- 731 Change Default of Length from to
- 731 Add
- 731 Change Default of from to
- 726 Change Default of Priority from to
- 726 Change Default of Loop from to
- 726 Change Default of Length from to
- 726 Remove
- 726 Change Default of from to
- 718 Change ReadSecurity of Length from RobloxScriptSecurity to None
- 718 Change WriteSecurity of Length from RobloxScriptSecurity to None
- 713 Add Length
- 565 Add
- 565 Add
- 553 Change Default of Priority from to
- 553 Change Default of Loop from to
- 497 Add Priority
- 497 Add Loop
- 497 Add AnimationClip
Members 5
Length
| Type | Default | |
|---|---|---|
| float | ||
| Thread safety | ReadSafe |
|---|---|
| Category | Data |
| Loaded/Saved | false/true |
Loop
| Type | Default | |
|---|---|---|
| bool | ||
Determines whether the animation stored in this AnimationClip is intended to loop. When set to true, the animation will continuously repeat each time it finishes.
Note that AnimationTrack instances internally load an AnimationClip when an Animation is requested via its AnimationId, and the AnimationTrack.Looped property will default to the original AnimationClip value. Note also that this value can be overwritten.
| Thread safety | ReadSafe |
|---|---|
| Category | Data |
| Loaded/Saved | true |
Priority
| Type | Default | |
|---|---|---|
| AnimationPriority | ||
Determines which clip takes priority when multiple animations are playing simultaneously. Multiple playing animations look to this property to figure out which Keyframe poses should be played over one another.
Note that AnimationTrack instances internally load an AnimationClip when an Animation is requested via its AnimationId, and the AnimationTrack.Priority property will default to the original AnimationClip value. Note also that this value can be overwritten.
| Thread safety | ReadSafe |
|---|---|
| Category | Data |
| Loaded/Saved | true |