Getting the animationLibraries from the animationPlayer

Godot Version

v4.2.1.stable.mono.official [b09f793f5]

Question

I’m trying to check wether an animation is inside a library, and the only way I found on how to do that is to use the AnimationLibrary.HasAnimation() method, however to do that I first have to get a reference to the library, and I don’t know how to get it.

Use AnimationMixer.get_animation_library_list() to get the list of animation libraries and then use AnimationMixer.get_animation_library() to get each AnimationLibrary

You could also use AnimationMixer.has_animation() if you have the full path to the animation (<animation_library>/<animation_name>)