format
typescript
Animation.IsPlaying(name)class: Animation
description
Check if the animation with the given name is currently playing.
parameter
| param_name | type | description |
|---|---|---|
| name | string | The name of the animation clip. |
reture
| type | description |
|---|---|
boolean | True if the animation is playing, false otherwise. |
code example
typescript
let obj = new GameObject();
let animation = obj.AddComponent<Animation>(Animation);
animation.IsPlaying("clip_name");