Skip to content

Commit

Permalink
Merge pull request #93818 from ashish0kumar/add/doc/global-lib-info-a…
Browse files Browse the repository at this point in the history
…dd_animation_library

Fix info about global library in `add_animation_library` method docs
  • Loading branch information
akien-mga committed Jul 1, 2024
2 parents a18beee + 87b0796 commit 070dddf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions doc/classes/AnimationMixer.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@
<param index="1" name="library" type="AnimationLibrary" />
<description>
Adds [param library] to the animation player, under the key [param name].
AnimationMixer has a global library by default with an empty string as key. For adding an animation to the global library:
[codeblocks]
[gdscript]
var global_library = mixer.get_animation_library("")
global_library.add_animation("animation_name", animation_resource)
[/gdscript]
[/codeblocks]
</description>
</method>
<method name="advance">
Expand Down

0 comments on commit 070dddf

Please sign in to comment.