Format
typescript
AnimationClip.frameRateclass: AnimationClip
Description
The frame rate (number of frames played per second) of an animation clip.
It represents the number of frames played per second in an animation clip, which controls the playback speed of the animation.
Parameters
| param_name | type | description |
|---|
Return
| type | description |
|---|---|
number | The frame rate. |
Code Example
typescript
let obj = new GameObject();
let animation = obj.AddComponent<Animation>(Animation);
let uuid = "31A9092E126B4B19BBFD9D5FCD75AA49";
let clip = Resources.Load<AnimationClip>(AnimationClip, uuid);
let rate = clip.frameRate;