2018-05-12 07:38:00 +00:00
<?xml version="1.0" encoding="UTF-8" ?>
2022-08-05 16:51:38 +00:00
<class name= "Skeleton2D" inherits= "Node2D" version= "3.6" xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation= "../class.xsd" >
2018-05-12 07:38:00 +00:00
<brief_description >
2019-10-10 03:10:28 +00:00
Skeleton for 2D characters and animated objects.
2018-05-12 07:38:00 +00:00
</brief_description>
<description >
2020-02-14 16:51:56 +00:00
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.
2018-05-12 07:38:00 +00:00
</description>
<tutorials >
2021-11-15 16:11:20 +00:00
<link > $DOCS_URL/tutorials/animation/2d_skeletons.html</link>
2018-05-12 07:38:00 +00:00
</tutorials>
<methods >
<method name= "get_bone" >
2021-07-30 13:28:05 +00:00
<return type= "Bone2D" />
<argument index= "0" name= "idx" type= "int" />
2018-05-12 07:38:00 +00:00
<description >
2020-02-05 12:19:27 +00:00
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.
2018-05-12 07:38:00 +00:00
</description>
</method>
<method name= "get_bone_count" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "int" />
2018-05-12 07:38:00 +00:00
<description >
2020-02-05 12:19:27 +00:00
Returns the number of [Bone2D] nodes in the node hierarchy parented by Skeleton2D.
2018-05-12 07:38:00 +00:00
</description>
</method>
<method name= "get_skeleton" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "RID" />
2018-05-12 07:38:00 +00:00
<description >
2020-02-05 12:19:27 +00:00
Returns the [RID] of a Skeleton2D instance.
2018-05-12 07:38:00 +00:00
</description>
</method>
</methods>
2019-02-18 08:35:10 +00:00
<signals >
<signal name= "bone_setup_changed" >
<description >
</description>
</signal>
</signals>
2018-05-12 07:38:00 +00:00
<constants >
</constants>
</class>