Class Animationlibrary - RST
Class Animationlibrary - RST
.. _class_AnimationLibrary:
AnimationLibrary
================
**Inherits:** :ref:`Resource<class_Resource>`
**<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
.. rst-class:: classref-introduction-group
Description
-----------
.. rst-class:: classref-introduction-group
Tutorials
---------
.. rst-class:: classref-reftable-group
Methods
-------
.. table::
:widths: auto
+------------------------------------------------------------------
+----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
-----+
| :ref:`Error<enum_@GlobalScope_Error>`
| :ref:`add_animation<class_AnimationLibrary_method_add_animation>`\ (\
name\: :ref:`StringName<class_StringName>`,
animation\: :ref:`Animation<class_Animation>`\ ) |
+------------------------------------------------------------------
+----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
-----+
| :ref:`Animation<class_Animation>`
| :ref:`get_animation<class_AnimationLibrary_method_get_animation>`\ (\
name\: :ref:`StringName<class_StringName>`\ ) |const|
|
+------------------------------------------------------------------
+----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
-----+
| :ref:`Array<class_Array>`\[:ref:`StringName<class_StringName>`\]
| :ref:`get_animation_list<class_AnimationLibrary_method_get_animation_list>`\ (\ )
|const|
|
+------------------------------------------------------------------
+----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
-----+
| :ref:`bool<class_bool>`
| :ref:`has_animation<class_AnimationLibrary_method_has_animation>`\ (\
name\: :ref:`StringName<class_StringName>`\ ) |const|
|
+------------------------------------------------------------------
+----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
-----+
| |void|
| :ref:`remove_animation<class_AnimationLibrary_method_remove_animation>`\ (\
name\: :ref:`StringName<class_StringName>`\ )
|
+------------------------------------------------------------------
+----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
-----+
| |void|
| :ref:`rename_animation<class_AnimationLibrary_method_rename_animation>`\ (\
name\: :ref:`StringName<class_StringName>`,
newname\: :ref:`StringName<class_StringName>`\ ) |
+------------------------------------------------------------------
+----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
-----+
.. rst-class:: classref-section-separator
----
.. rst-class:: classref-descriptions-group
Signals
-------
.. _class_AnimationLibrary_signal_animation_added:
.. rst-class:: classref-signal
**animation_added**\ (\
name\: :ref:`StringName<class_StringName>`\ ) :ref:`🔗<class_AnimationLibrary_signal
_animation_added>`
.. rst-class:: classref-item-separator
----
.. _class_AnimationLibrary_signal_animation_changed:
.. rst-class:: classref-signal
**animation_changed**\ (\
name\: :ref:`StringName<class_StringName>`\ ) :ref:`🔗<class_AnimationLibrary_signal
_animation_changed>`
Emitted when there's a change in one of the animations, e.g. tracks are added,
moved or have changed paths. ``name`` is the key of the animation that was changed.
.. rst-class:: classref-item-separator
----
.. _class_AnimationLibrary_signal_animation_removed:
.. rst-class:: classref-signal
**animation_removed**\ (\
name\: :ref:`StringName<class_StringName>`\ ) :ref:`🔗<class_AnimationLibrary_signal
_animation_removed>`
.. rst-class:: classref-item-separator
----
.. _class_AnimationLibrary_signal_animation_renamed:
.. rst-class:: classref-signal
.. rst-class:: classref-section-separator
----
.. rst-class:: classref-descriptions-group
Method Descriptions
-------------------
.. _class_AnimationLibrary_method_add_animation:
.. rst-class:: classref-method
:ref:`Error<enum_@GlobalScope_Error>` **add_animation**\ (\
name\: :ref:`StringName<class_StringName>`,
animation\: :ref:`Animation<class_Animation>`\ ) :ref:`🔗<class_AnimationLibrary_met
hod_add_animation>`
.. rst-class:: classref-item-separator
----
.. _class_AnimationLibrary_method_get_animation:
.. rst-class:: classref-method
:ref:`Animation<class_Animation>` **get_animation**\ (\
name\: :ref:`StringName<class_StringName>`\ ) |
const| :ref:`🔗<class_AnimationLibrary_method_get_animation>`
.. rst-class:: classref-item-separator
----
.. _class_AnimationLibrary_method_get_animation_list:
.. rst-class:: classref-method
:ref:`Array<class_Array>`\[:ref:`StringName<class_StringName>`\]
**get_animation_list**\ (\ ) |
const| :ref:`🔗<class_AnimationLibrary_method_get_animation_list>`
.. rst-class:: classref-item-separator
----
.. _class_AnimationLibrary_method_has_animation:
.. rst-class:: classref-method
:ref:`bool<class_bool>` **has_animation**\ (\
name\: :ref:`StringName<class_StringName>`\ ) |
const| :ref:`🔗<class_AnimationLibrary_method_has_animation>`
.. rst-class:: classref-item-separator
----
.. _class_AnimationLibrary_method_remove_animation:
.. rst-class:: classref-method
|void| **remove_animation**\ (\
name\: :ref:`StringName<class_StringName>`\ ) :ref:`🔗<class_AnimationLibrary_method
_remove_animation>`
.. rst-class:: classref-item-separator
----
.. _class_AnimationLibrary_method_rename_animation:
.. rst-class:: classref-method