Skip to content

Format

typescript
AnimationClip.curveCount

class: AnimationClip

Description

The total number of curves contained in an animation clip.

A curve refers to an animation curve associated with a specific property in an animation clip, such as the position, rotation, or scale of a Transform.

Parameters

param_nametypedescription

Return

typedescription
numberThe number of curves.

Code Example

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