Skip to content

Format

typescript
AnimationClip.frameRate

class: 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_nametypedescription

Return

typedescription
numberThe 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;