.. 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/docs/gdscript/doc/classes/SpriteFrames.xml. .. _class_SpriteFrames: SpriteFrames ============ **Inherits:** :ref:`Resource` **<** :ref:`RefCounted` **<** :ref:`Object` .. container:: contribute There is currently no description for this class. Please help us by :ref:`contributing one `! .. rst-class:: classref-reftable-group Methods ------- .. table:: :widths: auto +---------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`add_animation` **(** :ref:`StringName` anim **)** | +---------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`add_frame` **(** :ref:`StringName` anim, :ref:`Texture2D` texture, :ref:`float` duration=1.0, :ref:`int` at_position=-1 **)** | +---------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`clear` **(** :ref:`StringName` anim **)** | +---------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`clear_all` **(** **)** | +---------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`get_animation_loop` **(** :ref:`StringName` anim **)** |const| | +---------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`PackedStringArray` | :ref:`get_animation_names` **(** **)** |const| | +---------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`get_animation_speed` **(** :ref:`StringName` anim **)** |const| | +---------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_frame_count` **(** :ref:`StringName` anim **)** |const| | +---------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`get_frame_duration` **(** :ref:`StringName` anim, :ref:`int` idx **)** |const| | +---------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Texture2D` | :ref:`get_frame_texture` **(** :ref:`StringName` anim, :ref:`int` idx **)** |const| | +---------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`has_animation` **(** :ref:`StringName` anim **)** |const| | +---------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`remove_animation` **(** :ref:`StringName` anim **)** | +---------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`remove_frame` **(** :ref:`StringName` anim, :ref:`int` idx **)** | +---------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`rename_animation` **(** :ref:`StringName` anim, :ref:`StringName` newname **)** | +---------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_animation_loop` **(** :ref:`StringName` anim, :ref:`bool` loop **)** | +---------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_animation_speed` **(** :ref:`StringName` anim, :ref:`float` fps **)** | +---------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_frame` **(** :ref:`StringName` anim, :ref:`int` idx, :ref:`Texture2D` texture, :ref:`float` duration=1.0 **)** | +---------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Method Descriptions ------------------- .. _class_SpriteFrames_method_add_animation: .. rst-class:: classref-method void **add_animation** **(** :ref:`StringName` anim **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_SpriteFrames_method_add_frame: .. rst-class:: classref-method void **add_frame** **(** :ref:`StringName` anim, :ref:`Texture2D` texture, :ref:`float` duration=1.0, :ref:`int` at_position=-1 **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_SpriteFrames_method_clear: .. rst-class:: classref-method void **clear** **(** :ref:`StringName` anim **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_SpriteFrames_method_clear_all: .. rst-class:: classref-method void **clear_all** **(** **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_SpriteFrames_method_get_animation_loop: .. rst-class:: classref-method :ref:`bool` **get_animation_loop** **(** :ref:`StringName` anim **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_SpriteFrames_method_get_animation_names: .. rst-class:: classref-method :ref:`PackedStringArray` **get_animation_names** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_SpriteFrames_method_get_animation_speed: .. rst-class:: classref-method :ref:`float` **get_animation_speed** **(** :ref:`StringName` anim **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_SpriteFrames_method_get_frame_count: .. rst-class:: classref-method :ref:`int` **get_frame_count** **(** :ref:`StringName` anim **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_SpriteFrames_method_get_frame_duration: .. rst-class:: classref-method :ref:`float` **get_frame_duration** **(** :ref:`StringName` anim, :ref:`int` idx **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_SpriteFrames_method_get_frame_texture: .. rst-class:: classref-method :ref:`Texture2D` **get_frame_texture** **(** :ref:`StringName` anim, :ref:`int` idx **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_SpriteFrames_method_has_animation: .. rst-class:: classref-method :ref:`bool` **has_animation** **(** :ref:`StringName` anim **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_SpriteFrames_method_remove_animation: .. rst-class:: classref-method void **remove_animation** **(** :ref:`StringName` anim **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_SpriteFrames_method_remove_frame: .. rst-class:: classref-method void **remove_frame** **(** :ref:`StringName` anim, :ref:`int` idx **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_SpriteFrames_method_rename_animation: .. rst-class:: classref-method void **rename_animation** **(** :ref:`StringName` anim, :ref:`StringName` newname **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_SpriteFrames_method_set_animation_loop: .. rst-class:: classref-method void **set_animation_loop** **(** :ref:`StringName` anim, :ref:`bool` loop **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_SpriteFrames_method_set_animation_speed: .. rst-class:: classref-method void **set_animation_speed** **(** :ref:`StringName` anim, :ref:`float` fps **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_SpriteFrames_method_set_frame: .. rst-class:: classref-method void **set_frame** **(** :ref:`StringName` anim, :ref:`int` idx, :ref:`Texture2D` texture, :ref:`float` duration=1.0 **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. |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.)` .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`