Skip to content

Commit 070dddf

Browse files
committed
Merge pull request godotengine#93818 from ashish0kumar/add/doc/global-lib-info-add_animation_library
Fix info about global library in `add_animation_library` method docs
2 parents a18beee + 87b0796 commit 070dddf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

doc/classes/AnimationMixer.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@
2727
<param index="1" name="library" type="AnimationLibrary" />
2828
<description>
2929
Adds [param library] to the animation player, under the key [param name].
30+
AnimationMixer has a global library by default with an empty string as key. For adding an animation to the global library:
31+
[codeblocks]
32+
[gdscript]
33+
var global_library = mixer.get_animation_library("")
34+
global_library.add_animation("animation_name", animation_resource)
35+
[/gdscript]
36+
[/codeblocks]
3037
</description>
3138
</method>
3239
<method name="advance">

0 commit comments

Comments
 (0)