class_skeleton2d.rst 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the Skeleton2D.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_Skeleton2D:
  6. Skeleton2D
  7. ==========
  8. **Inherits:** :ref:`Node2D<class_Node2D>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  9. Skeleton for 2D characters and animated objects.
  10. Tutorials
  11. ---------
  12. - :doc:`../tutorials/animation/2d_skeletons`
  13. Methods
  14. -------
  15. +-----------------------------+-----------------------------------------------------------------------------------------+
  16. | :ref:`Bone2D<class_Bone2D>` | :ref:`get_bone<class_Skeleton2D_method_get_bone>` **(** :ref:`int<class_int>` idx **)** |
  17. +-----------------------------+-----------------------------------------------------------------------------------------+
  18. | :ref:`int<class_int>` | :ref:`get_bone_count<class_Skeleton2D_method_get_bone_count>` **(** **)** const |
  19. +-----------------------------+-----------------------------------------------------------------------------------------+
  20. | :ref:`RID<class_RID>` | :ref:`get_skeleton<class_Skeleton2D_method_get_skeleton>` **(** **)** const |
  21. +-----------------------------+-----------------------------------------------------------------------------------------+
  22. Signals
  23. -------
  24. .. _class_Skeleton2D_signal_bone_setup_changed:
  25. - **bone_setup_changed** **(** **)**
  26. Method Descriptions
  27. -------------------
  28. .. _class_Skeleton2D_method_get_bone:
  29. - :ref:`Bone2D<class_Bone2D>` **get_bone** **(** :ref:`int<class_int>` idx **)**
  30. ----
  31. .. _class_Skeleton2D_method_get_bone_count:
  32. - :ref:`int<class_int>` **get_bone_count** **(** **)** const
  33. Returns the amount of bones in the skeleton.
  34. ----
  35. .. _class_Skeleton2D_method_get_skeleton:
  36. - :ref:`RID<class_RID>` **get_skeleton** **(** **)** const