:github_url: hide .. DO NOT EDIT THIS FILE!!! .. Generated automatically from Godot engine sources. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/BoneMap.xml. .. _class_BoneMap: BoneMap ======= **Inherits:** :ref:`Resource` **<** :ref:`RefCounted` **<** :ref:`Object` Bone map for retargeting. Description ----------- This class contains a hashmap that uses a list of bone names in :ref:`SkeletonProfile` as key names. By assigning the actual :ref:`Skeleton3D` bone name as the key value, it maps the :ref:`Skeleton3D` to the :ref:`SkeletonProfile`. Properties ---------- +-----------------------------------------------+------------------------------------------------+ | :ref:`SkeletonProfile` | :ref:`profile` | +-----------------------------------------------+------------------------------------------------+ Methods ------- +-------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`StringName` | :ref:`find_profile_bone_name` **(** :ref:`StringName` skeleton_bone_name **)** |const| | +-------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`StringName` | :ref:`get_skeleton_bone_name` **(** :ref:`StringName` profile_bone_name **)** |const| | +-------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_skeleton_bone_name` **(** :ref:`StringName` profile_bone_name, :ref:`StringName` skeleton_bone_name **)** | +-------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ Signals ------- .. _class_BoneMap_signal_bone_map_updated: - **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. ---- .. _class_BoneMap_signal_profile_updated: - **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 --------------------- .. _class_BoneMap_property_profile: - :ref:`SkeletonProfile` **profile** +----------+--------------------+ | *Setter* | set_profile(value) | +----------+--------------------+ | *Getter* | get_profile() | +----------+--------------------+ A :ref:`SkeletonProfile` of the mapping target. Key names in the ``BoneMap`` are synchronized with it. Method Descriptions ------------------- .. _class_BoneMap_method_find_profile_bone_name: - :ref:`StringName` **find_profile_bone_name** **(** :ref:`StringName` skeleton_bone_name **)** |const| Returns a profile bone name having ``skeleton_bone_name``. If not found, an empty :ref:`StringName` will be returned. In the retargeting process, the returned bone name is the bone name of the target skeleton. ---- .. _class_BoneMap_method_get_skeleton_bone_name: - :ref:`StringName` **get_skeleton_bone_name** **(** :ref:`StringName` profile_bone_name **)** |const| 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. ---- .. _class_BoneMap_method_set_skeleton_bone_name: - void **set_skeleton_bone_name** **(** :ref:`StringName` profile_bone_name, :ref:`StringName` skeleton_bone_name **)** 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. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)` .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)` .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)` .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)` .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`