Skeleton2D.xml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="Skeleton2D" inherits="Node2D" version="3.4">
  3. <brief_description>
  4. Skeleton for 2D characters and animated objects.
  5. </brief_description>
  6. <description>
  7. Skeleton2D parents a hierarchy of [Bone2D] objects. It is a requirement of [Bone2D]. Skeleton2D holds a reference to the rest pose of its children and acts as a single point of access to its bones.
  8. </description>
  9. <tutorials>
  10. <link>https://docs.godotengine.org/en/3.3/tutorials/animation/2d_skeletons.html</link>
  11. </tutorials>
  12. <methods>
  13. <method name="get_bone">
  14. <return type="Bone2D">
  15. </return>
  16. <argument index="0" name="idx" type="int">
  17. </argument>
  18. <description>
  19. Returns a [Bone2D] from the node hierarchy parented by Skeleton2D. The object to return is identified by the parameter [code]idx[/code]. Bones are indexed by descending the node hierarchy from top to bottom, adding the children of each branch before moving to the next sibling.
  20. </description>
  21. </method>
  22. <method name="get_bone_count" qualifiers="const">
  23. <return type="int">
  24. </return>
  25. <description>
  26. Returns the number of [Bone2D] nodes in the node hierarchy parented by Skeleton2D.
  27. </description>
  28. </method>
  29. <method name="get_skeleton" qualifiers="const">
  30. <return type="RID">
  31. </return>
  32. <description>
  33. Returns the [RID] of a Skeleton2D instance.
  34. </description>
  35. </method>
  36. </methods>
  37. <signals>
  38. <signal name="bone_setup_changed">
  39. <description>
  40. </description>
  41. </signal>
  42. </signals>
  43. <constants>
  44. </constants>
  45. </class>