Skip to content
0.2.0-dev Download ZIP
57 lines ·2.6 KB Raw
1<?xml version="1.0" encoding="UTF-8" ?>
2<class name="BoneMap" inherits="Resource" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
3 <brief_description>
4 Describes a mapping of bone names for retargeting [Skeleton3D] into common names defined by a [SkeletonProfile].
5 </brief_description>
6 <description>
7 This class contains a dictionary that uses a list of bone names in [SkeletonProfile] as key names.
8 By assigning the actual [Skeleton3D] bone name as the key value, it maps the [Skeleton3D] to the [SkeletonProfile].
9 </description>
10 <tutorials>
11 <link title="Retargeting 3D Skeletons">$DOCS_URL/tutorials/assets_pipeline/retargeting_3d_skeletons.html</link>
12 </tutorials>
13 <methods>
14 <method name="find_profile_bone_name" qualifiers="const">
15 <return type="StringName" />
16 <param index="0" name="skeleton_bone_name" type="StringName" />
17 <description>
18 Returns a profile bone name having [param skeleton_bone_name]. If not found, an empty [StringName] will be returned.
19 In the retargeting process, the returned bone name is the bone name of the target skeleton.
20 </description>
21 </method>
22 <method name="get_skeleton_bone_name" qualifiers="const">
23 <return type="StringName" />
24 <param index="0" name="profile_bone_name" type="StringName" />
25 <description>
26 Returns a skeleton bone name is mapped to [param profile_bone_name].
27 In the retargeting process, the returned bone name is the bone name of the source skeleton.
28 </description>
29 </method>
30 <method name="set_skeleton_bone_name">
31 <return type="void" />
32 <param index="0" name="profile_bone_name" type="StringName" />
33 <param index="1" name="skeleton_bone_name" type="StringName" />
34 <description>
35 Maps a skeleton bone name to [param profile_bone_name].
36 In the retargeting process, the setting bone name is the bone name of the source skeleton.
37 </description>
38 </method>
39 </methods>
40 <members>
41 <member name="profile" type="SkeletonProfile" setter="set_profile" getter="get_profile">
42 A [SkeletonProfile] of the mapping target. Key names in the [BoneMap] are synchronized with it.
43 </member>
44 </members>
45 <signals>
46 <signal name="bone_map_updated">
47 <description>
48 This signal is emitted when change the key value in the [BoneMap]. This is used to validate mapping and to update [BoneMap] editor.
49 </description>
50 </signal>
51 <signal name="profile_updated">
52 <description>
53 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.
54 </description>
55 </signal>
56 </signals>
57</class>