Skip to content

format

typescript
Animation.GetClips()

class: Animation

description

Get multiple animation clips.

parameter

param_nametypedescription

reture

typedescription
AnimationClipItemCollection of animation clips and their playback configurations.

code example

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