class_boneattachment.rst 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead.
  3. .. _class_BoneAttachment:
  4. BoneAttachment
  5. ==============
  6. **Inherits:** :ref:`Spatial<class_spatial>` **<** :ref:`Node<class_node>` **<** :ref:`Object<class_object>`
  7. **Category:** Core
  8. Brief Description
  9. -----------------
  10. A node that will attach to a bone.
  11. Member Functions
  12. ----------------
  13. +------------------------------+--------------------------------------------------------------------------------------------------------------+
  14. | :ref:`String<class_string>` | :ref:`get_bone_name<class_BoneAttachment_get_bone_name>` **(** **)** const |
  15. +------------------------------+--------------------------------------------------------------------------------------------------------------+
  16. | void | :ref:`set_bone_name<class_BoneAttachment_set_bone_name>` **(** :ref:`String<class_string>` bone_name **)** |
  17. +------------------------------+--------------------------------------------------------------------------------------------------------------+
  18. Description
  19. -----------
  20. This node must be the child of a :ref:`Skeleton<class_skeleton>` node. You can then select a bone for this node to attach to. The BoneAttachment node will copy the transform of the selected bone.
  21. Member Function Description
  22. ---------------------------
  23. .. _class_BoneAttachment_get_bone_name:
  24. - :ref:`String<class_string>` **get_bone_name** **(** **)** const
  25. .. _class_BoneAttachment_set_bone_name:
  26. - void **set_bone_name** **(** :ref:`String<class_string>` bone_name **)**