Skip to content

Commit 87b0796

Browse files
Fix Info about Global library on add_animation_library method in doc/classes/AnimationMixer.xml
Fix Info about Global library on add_animation_library method in doc/classes/AnimationMixer.xml Fix Info about Global library on add_animation_library method Co-authored-by: Silc Lizard (Tokage) Renew <[email protected]>
1 parent 446e7a7 commit 87b0796

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)