class_bonemap.rst 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/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. Bone map for retargeting.
  11. Description
  12. -----------
  13. This class contains a hashmap that uses a list of bone names in :ref:`SkeletonProfile<class_SkeletonProfile>` as key names.
  14. 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>`.
  15. Tutorials
  16. ---------
  17. - :doc:`Retargeting 3D Skeletons <../tutorials/assets_pipeline/retargeting_3d_skeletons>`
  18. Properties
  19. ----------
  20. +-----------------------------------------------+------------------------------------------------+
  21. | :ref:`SkeletonProfile<class_SkeletonProfile>` | :ref:`profile<class_BoneMap_property_profile>` |
  22. +-----------------------------------------------+------------------------------------------------+
  23. Methods
  24. -------
  25. +-------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  26. | :ref:`StringName<class_StringName>` | :ref:`find_profile_bone_name<class_BoneMap_method_find_profile_bone_name>` **(** :ref:`StringName<class_StringName>` skeleton_bone_name **)** |const| |
  27. +-------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  28. | :ref:`StringName<class_StringName>` | :ref:`get_skeleton_bone_name<class_BoneMap_method_get_skeleton_bone_name>` **(** :ref:`StringName<class_StringName>` profile_bone_name **)** |const| |
  29. +-------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  30. | 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 **)** |
  31. +-------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  32. Signals
  33. -------
  34. .. _class_BoneMap_signal_bone_map_updated:
  35. - **bone_map_updated** **(** **)**
  36. This signal is emitted when change the key value in the ``BoneMap``. This is used to validate mapping and to update ``BoneMap`` editor.
  37. ----
  38. .. _class_BoneMap_signal_profile_updated:
  39. - **profile_updated** **(** **)**
  40. 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.
  41. Property Descriptions
  42. ---------------------
  43. .. _class_BoneMap_property_profile:
  44. - :ref:`SkeletonProfile<class_SkeletonProfile>` **profile**
  45. +----------+--------------------+
  46. | *Setter* | set_profile(value) |
  47. +----------+--------------------+
  48. | *Getter* | get_profile() |
  49. +----------+--------------------+
  50. A :ref:`SkeletonProfile<class_SkeletonProfile>` of the mapping target. Key names in the ``BoneMap`` are synchronized with it.
  51. Method Descriptions
  52. -------------------
  53. .. _class_BoneMap_method_find_profile_bone_name:
  54. - :ref:`StringName<class_StringName>` **find_profile_bone_name** **(** :ref:`StringName<class_StringName>` skeleton_bone_name **)** |const|
  55. Returns a profile bone name having ``skeleton_bone_name``. If not found, an empty :ref:`StringName<class_StringName>` will be returned.
  56. In the retargeting process, the returned bone name is the bone name of the target skeleton.
  57. ----
  58. .. _class_BoneMap_method_get_skeleton_bone_name:
  59. - :ref:`StringName<class_StringName>` **get_skeleton_bone_name** **(** :ref:`StringName<class_StringName>` profile_bone_name **)** |const|
  60. Returns a skeleton bone name is mapped to ``profile_bone_name``.
  61. In the retargeting process, the returned bone name is the bone name of the source skeleton.
  62. ----
  63. .. _class_BoneMap_method_set_skeleton_bone_name:
  64. - void **set_skeleton_bone_name** **(** :ref:`StringName<class_StringName>` profile_bone_name, :ref:`StringName<class_StringName>` skeleton_bone_name **)**
  65. Maps a skeleton bone name to ``profile_bone_name``.
  66. In the retargeting process, the setting bone name is the bone name of the source skeleton.
  67. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  68. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  69. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  70. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  71. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  72. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`