BoneMap

继承: Resource < RefCounted < Object

Describes a mapping of bone names for retargeting Skeleton3D into common names defined by a SkeletonProfile.

描述

This class contains a dictionary that uses a list of bone names in SkeletonProfile as key names.

By assigning the actual Skeleton3D bone name as the key value, it maps the Skeleton3D to the SkeletonProfile.

属性

方法

StringNamefind_profile_bone_name ( skeleton_bone_name: StringName ) const1
StringNameget_skeleton_bone_name ( profile_bone_name: StringName ) const1
voidset_skeleton_bone_name ( profile_bone_name: StringName, skeleton_bone_name: StringName )

信号

bone_map_updated ( )

This signal is emitted when change the key value in the BoneMap. This is used to validate mapping and to update BoneMap editor.


profile_updated ( )

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.


属性说明

SkeletonProfile profile

A SkeletonProfile of the mapping target. Key names in the BoneMap are synchronized with it.


方法说明

StringName find_profile_bone_name ( skeleton_bone_name: StringName ) const1

Returns a profile bone name having skeleton_bone_name. If not found, an empty StringName will be returned.

In the retargeting process, the returned bone name is the bone name of the target skeleton.


StringName get_skeleton_bone_name ( profile_bone_name: StringName ) const1

Returns a skeleton bone name is mapped to profile_bone_name.

In the retargeting process, the returned bone name is the bone name of the source skeleton.


void set_skeleton_bone_name ( profile_bone_name: StringName, skeleton_bone_name: StringName )

Maps a skeleton bone name to profile_bone_name.

In the retargeting process, the setting bone name is the bone name of the source skeleton.

2

本方法通常需要用户覆盖才能生效。

1

本方法无副作用,不会修改该实例的任何成员变量。

3

本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。

4

本方法用于构造某个类型。

5

调用本方法无需实例,可直接使用类名进行调用。

6

本方法描述的是使用本类型作为左操作数的有效运算符。

7

这个值是由下列位标志构成位掩码的整数。

8

无返回值。