Skip to content

AnimationClip

extends AssetObject

The AnimationClip class is used to create and manage animation clips.

You can obtain an AnimationClip object using the following method:

typescript
let obj = new GameObject();
let animation = obj.AddComponent<Animation>(Animation);
let uuid = "31A9092E126B4B19BBFD9D5FCD75AA49";
let clip = Resources.Load<AnimationClip>(AnimationClip, uuid);

Instance Properties

AnimationClip.length : number
The length of the current animation clip.
AnimationClip.frameRate : number
The frame rate (number of frames played per second) of an animation clip.
AnimationClip.curveCount : number
The total number of curves contained in an animation clip.