class_bonemap.rst 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/4.2/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/4.2/doc/classes/BoneMap.xml.
  6. .. _class_BoneMap:
  7. BoneMap
  8. =======
  9. **Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. Describes a mapping of bone names for retargeting :ref:`Skeleton3D<class_Skeleton3D>` into common names defined by a :ref:`SkeletonProfile<class_SkeletonProfile>`.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. This class contains a dictionary that uses a list of bone names in :ref:`SkeletonProfile<class_SkeletonProfile>` as key names.
  15. By assigning the actual :ref:`Skeleton3D<class_Skeleton3D>` bone name as the key value, it maps the :ref:`Skeleton3D<class_Skeleton3D>` to the :ref:`SkeletonProfile<class_SkeletonProfile>`.
  16. .. rst-class:: classref-introduction-group
  17. Tutorials
  18. ---------
  19. - :doc:`Retargeting 3D Skeletons <../tutorials/assets_pipeline/retargeting_3d_skeletons>`
  20. .. rst-class:: classref-reftable-group
  21. Properties
  22. ----------
  23. .. table::
  24. :widths: auto
  25. +-----------------------------------------------+------------------------------------------------+
  26. | :ref:`SkeletonProfile<class_SkeletonProfile>` | :ref:`profile<class_BoneMap_property_profile>` |
  27. +-----------------------------------------------+------------------------------------------------+
  28. .. rst-class:: classref-reftable-group
  29. Methods
  30. -------
  31. .. table::
  32. :widths: auto
  33. +-------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  34. | :ref:`StringName<class_StringName>` | :ref:`find_profile_bone_name<class_BoneMap_method_find_profile_bone_name>` **(** :ref:`StringName<class_StringName>` skeleton_bone_name **)** |const| |
  35. +-------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  36. | :ref:`StringName<class_StringName>` | :ref:`get_skeleton_bone_name<class_BoneMap_method_get_skeleton_bone_name>` **(** :ref:`StringName<class_StringName>` profile_bone_name **)** |const| |
  37. +-------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  38. | void | :ref:`set_skeleton_bone_name<class_BoneMap_method_set_skeleton_bone_name>` **(** :ref:`StringName<class_StringName>` profile_bone_name, :ref:`StringName<class_StringName>` skeleton_bone_name **)** |
  39. +-------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  40. .. rst-class:: classref-section-separator
  41. ----
  42. .. rst-class:: classref-descriptions-group
  43. Signals
  44. -------
  45. .. _class_BoneMap_signal_bone_map_updated:
  46. .. rst-class:: classref-signal
  47. **bone_map_updated** **(** **)**
  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. .. rst-class:: classref-item-separator
  50. ----
  51. .. _class_BoneMap_signal_profile_updated:
  52. .. rst-class:: classref-signal
  53. **profile_updated** **(** **)**
  54. 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.
  55. .. rst-class:: classref-section-separator
  56. ----
  57. .. rst-class:: classref-descriptions-group
  58. Property Descriptions
  59. ---------------------
  60. .. _class_BoneMap_property_profile:
  61. .. rst-class:: classref-property
  62. :ref:`SkeletonProfile<class_SkeletonProfile>` **profile**
  63. .. rst-class:: classref-property-setget
  64. - void **set_profile** **(** :ref:`SkeletonProfile<class_SkeletonProfile>` value **)**
  65. - :ref:`SkeletonProfile<class_SkeletonProfile>` **get_profile** **(** **)**
  66. A :ref:`SkeletonProfile<class_SkeletonProfile>` of the mapping target. Key names in the **BoneMap** are synchronized with it.
  67. .. rst-class:: classref-section-separator
  68. ----
  69. .. rst-class:: classref-descriptions-group
  70. Method Descriptions
  71. -------------------
  72. .. _class_BoneMap_method_find_profile_bone_name:
  73. .. rst-class:: classref-method
  74. :ref:`StringName<class_StringName>` **find_profile_bone_name** **(** :ref:`StringName<class_StringName>` skeleton_bone_name **)** |const|
  75. Returns a profile bone name having ``skeleton_bone_name``. If not found, an empty :ref:`StringName<class_StringName>` will be returned.
  76. In the retargeting process, the returned bone name is the bone name of the target skeleton.
  77. .. rst-class:: classref-item-separator
  78. ----
  79. .. _class_BoneMap_method_get_skeleton_bone_name:
  80. .. rst-class:: classref-method
  81. :ref:`StringName<class_StringName>` **get_skeleton_bone_name** **(** :ref:`StringName<class_StringName>` profile_bone_name **)** |const|
  82. Returns a skeleton bone name is mapped to ``profile_bone_name``.
  83. In the retargeting process, the returned bone name is the bone name of the source skeleton.
  84. .. rst-class:: classref-item-separator
  85. ----
  86. .. _class_BoneMap_method_set_skeleton_bone_name:
  87. .. rst-class:: classref-method
  88. void **set_skeleton_bone_name** **(** :ref:`StringName<class_StringName>` profile_bone_name, :ref:`StringName<class_StringName>` skeleton_bone_name **)**
  89. Maps a skeleton bone name to ``profile_bone_name``.
  90. In the retargeting process, the setting bone name is the bone name of the source skeleton.
  91. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  92. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  93. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  94. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  95. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  96. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  97. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`