mirror of
https://github.com/godotengine/godot-docs.git
synced 2025-12-31 17:49:03 +03:00
113 lines
5.9 KiB
ReStructuredText
113 lines
5.9 KiB
ReStructuredText
:github_url: hide
|
|
|
|
.. Generated automatically by doc/tools/make_rst.py in Godot's source tree.
|
|
.. DO NOT EDIT THIS FILE, but the AnimationLibrary.xml source instead.
|
|
.. The source is found in doc/classes or modules/<name>/doc_classes.
|
|
|
|
.. _class_AnimationLibrary:
|
|
|
|
AnimationLibrary
|
|
================
|
|
|
|
**Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
|
|
|
|
|
|
|
|
Properties
|
|
----------
|
|
|
|
+-------------------------------------+-----------------------------------------------------+--------+
|
|
| :ref:`Dictionary<class_Dictionary>` | :ref:`_data<class_AnimationLibrary_property__data>` | ``{}`` |
|
|
+-------------------------------------+-----------------------------------------------------+--------+
|
|
|
|
Methods
|
|
-------
|
|
|
|
+---------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| :ref:`Error<enum_@GlobalScope_Error>` | :ref:`add_animation<class_AnimationLibrary_method_add_animation>` **(** :ref:`StringName<class_StringName>` name, :ref:`Animation<class_Animation>` animation **)** |
|
|
+---------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| :ref:`Animation<class_Animation>` | :ref:`get_animation<class_AnimationLibrary_method_get_animation>` **(** :ref:`StringName<class_StringName>` name **)** |const| |
|
|
+---------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| :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>` **(** :ref:`StringName<class_StringName>` name **)** |const| |
|
|
+---------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| void | :ref:`remove_animation<class_AnimationLibrary_method_remove_animation>` **(** :ref:`StringName<class_StringName>` name **)** |
|
|
+---------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| void | :ref:`rename_animation<class_AnimationLibrary_method_rename_animation>` **(** :ref:`StringName<class_StringName>` name, :ref:`StringName<class_StringName>` newname **)** |
|
|
+---------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
Signals
|
|
-------
|
|
|
|
.. _class_AnimationLibrary_signal_animation_added:
|
|
|
|
- **animation_added** **(** :ref:`StringName<class_StringName>` name **)**
|
|
|
|
----
|
|
|
|
.. _class_AnimationLibrary_signal_animation_removed:
|
|
|
|
- **animation_removed** **(** :ref:`StringName<class_StringName>` name **)**
|
|
|
|
----
|
|
|
|
.. _class_AnimationLibrary_signal_animation_renamed:
|
|
|
|
- **animation_renamed** **(** :ref:`StringName<class_StringName>` name, :ref:`StringName<class_StringName>` to_name **)**
|
|
|
|
Property Descriptions
|
|
---------------------
|
|
|
|
.. _class_AnimationLibrary_property__data:
|
|
|
|
- :ref:`Dictionary<class_Dictionary>` **_data**
|
|
|
|
+-----------+--------+
|
|
| *Default* | ``{}`` |
|
|
+-----------+--------+
|
|
|
|
Method Descriptions
|
|
-------------------
|
|
|
|
.. _class_AnimationLibrary_method_add_animation:
|
|
|
|
- :ref:`Error<enum_@GlobalScope_Error>` **add_animation** **(** :ref:`StringName<class_StringName>` name, :ref:`Animation<class_Animation>` animation **)**
|
|
|
|
----
|
|
|
|
.. _class_AnimationLibrary_method_get_animation:
|
|
|
|
- :ref:`Animation<class_Animation>` **get_animation** **(** :ref:`StringName<class_StringName>` name **)** |const|
|
|
|
|
----
|
|
|
|
.. _class_AnimationLibrary_method_get_animation_list:
|
|
|
|
- :ref:`StringName[]<class_StringName>` **get_animation_list** **(** **)** |const|
|
|
|
|
----
|
|
|
|
.. _class_AnimationLibrary_method_has_animation:
|
|
|
|
- :ref:`bool<class_bool>` **has_animation** **(** :ref:`StringName<class_StringName>` name **)** |const|
|
|
|
|
----
|
|
|
|
.. _class_AnimationLibrary_method_remove_animation:
|
|
|
|
- void **remove_animation** **(** :ref:`StringName<class_StringName>` name **)**
|
|
|
|
----
|
|
|
|
.. _class_AnimationLibrary_method_rename_animation:
|
|
|
|
- void **rename_animation** **(** :ref:`StringName<class_StringName>` name, :ref:`StringName<class_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.)`
|