Skip to content
0.2.0-dev Download ZIP
90 lines ·3.8 KB Raw
1<?xml version="1.0" encoding="UTF-8" ?>
2<class name="BoneSpaceAdjuster3D" inherits="SkeletonModifier3D" api_type="core" keywords="distribute, spread, skin, scale" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
3 <brief_description>
4 Inputs a scale and converts it to the position of a child bone.
5 </brief_description>
6 <description>
7 Inputs a scale and converts it to the position of a child bone. Intended for use in combination with [method Skeleton3D.set_bone_skin_scale].
8 This modifier repositions child bones to follow the skin transformation by [method Skeleton3D.set_bone_skin_scale] in cases when you want to adjust bone length using [method Skeleton3D.set_bone_skin_scale] or when the bone has multiple child bones.
9 </description>
10 <tutorials>
11 </tutorials>
12 <methods>
13 <method name="clear_setting">
14 <return type="void" />
15 <description>
16 Clears all settings.
17 </description>
18 </method>
19 <method name="get_bone" qualifiers="const">
20 <return type="int" />
21 <param index="0" name="index" type="int" />
22 <description>
23 Returns the scaled bone of the setting at [param index].
24 </description>
25 </method>
26 <method name="get_bone_name" qualifiers="const">
27 <return type="StringName" />
28 <param index="0" name="index" type="int" />
29 <description>
30 Returns the scaled bone name of the setting at [param index].
31 </description>
32 </method>
33 <method name="get_bone_scale" qualifiers="const">
34 <return type="Vector3" />
35 <param index="0" name="index" type="int" />
36 <description>
37 Returns the scale of the setting at [param index].
38 </description>
39 </method>
40 <method name="is_using_bone_skin_scale" qualifiers="const">
41 <return type="bool" />
42 <param index="0" name="index" type="int" />
43 <description>
44 Returns whether to use the [code]skin_scale[/code] property of a [Skeleton3D]'s bone of the setting at [param index].
45 </description>
46 </method>
47 <method name="set_bone">
48 <return type="void" />
49 <param index="0" name="index" type="int" />
50 <param index="1" name="bone" type="int" />
51 <description>
52 Sets the scaled bone of the setting at [param index].
53 </description>
54 </method>
55 <method name="set_bone_name">
56 <return type="void" />
57 <param index="0" name="index" type="int" />
58 <param index="1" name="bone_name" type="StringName" />
59 <description>
60 Sets the scaled bone name of the setting at [param index].
61 </description>
62 </method>
63 <method name="set_bone_scale">
64 <return type="void" />
65 <param index="0" name="index" type="int" />
66 <param index="1" name="scale" type="Vector3" />
67 <description>
68 When [method is_using_bone_skin_scale] returns [code]false[/code], sets the scale of the setting at [param index].
69 [b]Note:[/b] The [param scale] value is recommended to be non-zero.
70 </description>
71 </method>
72 <method name="set_use_bone_skin_scale">
73 <return type="void" />
74 <param index="0" name="index" type="int" />
75 <param index="1" name="enabled" type="bool" />
76 <description>
77 Sets whether to use the [code]skin_scale[/code] property of a [Skeleton3D]'s bone of the setting at [param index].
78 </description>
79 </method>
80 </methods>
81 <members>
82 <member name="setting_size" type="int" setter="set_setting_size" getter="get_setting_size">
83 The number of settings in the modifier.
84 </member>
85 <member name="use_bone_skin_scale_for_all_bones" type="bool" setter="set_use_bone_skin_scale_for_all_bones" getter="are_all_bones_using_bone_skin_scale" default="true">
86 If [code]true[/code], this modifier processes all bones for which [method Skeleton3D.get_bone_skin_scale] is not [code]Vector3(1, 1, 1)[/code].
87 If [code]false[/code], this modifier allows you to configure whether to process bone skin scaling individually in the settings.
88 </member>
89 </members>
90</class>