Up to date

This page is up to date for Godot 4.2. If you still find outdated information, please open an issue.

BoneMap

Inherits: Resource < RefCounted < Object

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

Description

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.

Tutorials

Properties

SkeletonProfile

profile

Methods

StringName

find_profile_bone_name ( StringName skeleton_bone_name ) const

StringName

get_skeleton_bone_name ( StringName profile_bone_name ) const

void

set_skeleton_bone_name ( StringName profile_bone_name, StringName skeleton_bone_name )


Signals

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.


Property Descriptions

SkeletonProfile profile

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


Method Descriptions