class_boneattachment.rst 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the BoneAttachment.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_BoneAttachment:
  6. BoneAttachment
  7. ==============
  8. **Inherits:** :ref:`Spatial<class_Spatial>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  9. **Category:** Core
  10. Brief Description
  11. -----------------
  12. A node that will attach to a bone.
  13. Properties
  14. ----------
  15. +-----------------------------+-----------------------------------------------------------+----+
  16. | :ref:`String<class_String>` | :ref:`bone_name<class_BoneAttachment_property_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. Property Descriptions
  22. ---------------------
  23. .. _class_BoneAttachment_property_bone_name:
  24. - :ref:`String<class_String>` **bone_name**
  25. +-----------+----------------------+
  26. | *Default* | "" |
  27. +-----------+----------------------+
  28. | *Setter* | set_bone_name(value) |
  29. +-----------+----------------------+
  30. | *Getter* | get_bone_name() |
  31. +-----------+----------------------+
  32. The name of the attached bone.