2022-06-27 08:06:50 +00:00
<?xml version="1.0" encoding="UTF-8" ?>
2023-03-01 00:44:37 +00:00
<class name= "BoneMap" inherits= "Resource" version= "4.1" xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation= "../class.xsd" >
2022-06-27 08:06:50 +00:00
<brief_description >
2023-04-28 15:16:44 +00:00
Describes a mapping of bone names for retargeting [Skeleton3D] into common names defined by a [SkeletonProfile].
2022-06-27 08:06:50 +00:00
</brief_description>
<description >
2023-04-28 15:16:44 +00:00
This class contains a dictionary that uses a list of bone names in [SkeletonProfile] as key names.
2022-06-27 08:06:50 +00:00
By assigning the actual [Skeleton3D] bone name as the key value, it maps the [Skeleton3D] to the [SkeletonProfile].
</description>
<tutorials >
2022-10-21 17:56:16 +00:00
<link title= "Retargeting 3D Skeletons" > $DOCS_URL/tutorials/assets_pipeline/retargeting_3d_skeletons.html</link>
2022-06-27 08:06:50 +00:00
</tutorials>
<methods >
<method name= "find_profile_bone_name" qualifiers= "const" >
<return type= "StringName" />
2022-08-06 18:11:48 +00:00
<param index= "0" name= "skeleton_bone_name" type= "StringName" />
2022-06-27 08:06:50 +00:00
<description >
2022-08-12 17:13:27 +00:00
Returns a profile bone name having [param skeleton_bone_name]. If not found, an empty [StringName] will be returned.
2022-06-27 08:06:50 +00:00
In the retargeting process, the returned bone name is the bone name of the target skeleton.
</description>
</method>
<method name= "get_skeleton_bone_name" qualifiers= "const" >
<return type= "StringName" />
2022-08-06 18:11:48 +00:00
<param index= "0" name= "profile_bone_name" type= "StringName" />
2022-06-27 08:06:50 +00:00
<description >
2022-08-12 17:13:27 +00:00
Returns a skeleton bone name is mapped to [param profile_bone_name].
2022-06-27 08:06:50 +00:00
In the retargeting process, the returned bone name is the bone name of the source skeleton.
</description>
</method>
<method name= "set_skeleton_bone_name" >
<return type= "void" />
2022-08-06 18:11:48 +00:00
<param index= "0" name= "profile_bone_name" type= "StringName" />
<param index= "1" name= "skeleton_bone_name" type= "StringName" />
2022-06-27 08:06:50 +00:00
<description >
2022-08-12 17:13:27 +00:00
Maps a skeleton bone name to [param profile_bone_name].
2022-06-27 08:06:50 +00:00
In the retargeting process, the setting bone name is the bone name of the source skeleton.
</description>
</method>
</methods>
<members >
<member name= "profile" type= "SkeletonProfile" setter= "set_profile" getter= "get_profile" >
A [SkeletonProfile] of the mapping target. Key names in the [BoneMap] are synchronized with it.
</member>
</members>
<signals >
<signal name= "bone_map_updated" >
<description >
This signal is emitted when change the key value in the [BoneMap]. This is used to validate mapping and to update [BoneMap] editor.
</description>
</signal>
<signal name= "profile_updated" >
<description >
This signal is emitted when change the value in profile or change the reference of profile. This is used to update key names in the [BoneMap] and to redraw the [BoneMap] editor.
</description>
</signal>
</signals>
</class>