:github_url: hide .. DO NOT EDIT THIS FILE!!! .. Generated automatically from Godot engine sources. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/AnimationLibrary.xml. .. _class_AnimationLibrary: AnimationLibrary ================ **Inherits:** :ref:`Resource` **<** :ref:`RefCounted` **<** :ref:`Object` Properties ---------- +-------------------------------------+-----------------------------------------------------+--------+ | :ref:`Dictionary` | :ref:`_data` | ``{}`` | +-------------------------------------+-----------------------------------------------------+--------+ Methods ------- +---------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Error` | :ref:`add_animation` **(** :ref:`StringName` name, :ref:`Animation` animation **)** | +---------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Animation` | :ref:`get_animation` **(** :ref:`StringName` name **)** |const| | +---------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`StringName[]` | :ref:`get_animation_list` **(** **)** |const| | +---------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`has_animation` **(** :ref:`StringName` name **)** |const| | +---------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`remove_animation` **(** :ref:`StringName` name **)** | +---------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`rename_animation` **(** :ref:`StringName` name, :ref:`StringName` newname **)** | +---------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ Signals ------- .. _class_AnimationLibrary_signal_animation_added: - **animation_added** **(** :ref:`StringName` name **)** ---- .. _class_AnimationLibrary_signal_animation_removed: - **animation_removed** **(** :ref:`StringName` name **)** ---- .. _class_AnimationLibrary_signal_animation_renamed: - **animation_renamed** **(** :ref:`StringName` name, :ref:`StringName` to_name **)** Property Descriptions --------------------- .. _class_AnimationLibrary_property__data: - :ref:`Dictionary` **_data** +-----------+--------+ | *Default* | ``{}`` | +-----------+--------+ Method Descriptions ------------------- .. _class_AnimationLibrary_method_add_animation: - :ref:`Error` **add_animation** **(** :ref:`StringName` name, :ref:`Animation` animation **)** ---- .. _class_AnimationLibrary_method_get_animation: - :ref:`Animation` **get_animation** **(** :ref:`StringName` name **)** |const| ---- .. _class_AnimationLibrary_method_get_animation_list: - :ref:`StringName[]` **get_animation_list** **(** **)** |const| ---- .. _class_AnimationLibrary_method_has_animation: - :ref:`bool` **has_animation** **(** :ref:`StringName` name **)** |const| ---- .. _class_AnimationLibrary_method_remove_animation: - void **remove_animation** **(** :ref:`StringName` name **)** ---- .. _class_AnimationLibrary_method_rename_animation: - void **rename_animation** **(** :ref:`StringName` name, :ref:`StringName` newname **)** .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)` .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)` .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)` .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)` .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`