diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-07-01 22:54:25 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-07-01 22:54:25 +0200 |
commit | 070dddf9cae36e4cadffadcca66b81fef66f171b (patch) | |
tree | 524d41d95c6966c4cdbda9bf03bb37023a732322 | |
parent | a18beeede2afbc5d8155ef915f7f3989c870c057 (diff) | |
parent | 87b0796e8ad2e277c3458e745c747d1239aed2c3 (diff) | |
download | redot-engine-070dddf9cae36e4cadffadcca66b81fef66f171b.tar.gz |
Merge pull request #93818 from ashish0kumar/add/doc/global-lib-info-add_animation_library
Fix info about global library in `add_animation_library` method docs
-rw-r--r-- | doc/classes/AnimationMixer.xml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/classes/AnimationMixer.xml b/doc/classes/AnimationMixer.xml index c635eba2ab..25fcecda4b 100644 --- a/doc/classes/AnimationMixer.xml +++ b/doc/classes/AnimationMixer.xml @@ -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"> |