Skip to content

Commit

Permalink
Fixed API anim play call in Anim Components (#518)
Browse files Browse the repository at this point in the history
Co-authored-by: Steven Yau <[email protected]>
  • Loading branch information
yaustar and Steven Yau authored Aug 9, 2023
1 parent 538b609 commit b6302d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/en/user-manual/packs/components/anim.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ After selecting an animstategraph asset, the anim component will display a list

![Anim Component With Graph][2]

After all animation state slots have been filled, the anim component will become playable. At this point the anim component can either be played via script by calling `entity.anim.play()` or if the `Activate` option is selected, it will play automatically upon the launch of the PlayCanvas project.
After all animation state slots have been filled, the anim component will become playable. At this point the anim component can either be played via script by calling `entity.anim.playing = true` or if the `Activate` option is selected, it will play automatically upon the launch of the PlayCanvas project.

The anim component also offers the option to alter the speed of the animation playback. This speed will affect every animation within the state graph.

Expand Down

0 comments on commit b6302d4

Please sign in to comment.