class_visualscriptcomment.rst 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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/modules/visual_script/doc_classes/VisualScriptComment.xml.
  6. .. _class_VisualScriptComment:
  7. VisualScriptComment
  8. ===================
  9. **Inherits:** :ref:`VisualScriptNode<class_VisualScriptNode>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. A Visual Script node used to annotate the script.
  11. Description
  12. -----------
  13. A Visual Script node used to display annotations in the script, so that code may be documented.
  14. Comment nodes can be resized so they encompass a group of nodes.
  15. Properties
  16. ----------
  17. +-------------------------------+--------------------------------------------------------------------+-----------------------+
  18. | :ref:`String<class_String>` | :ref:`description<class_VisualScriptComment_property_description>` | ``""`` |
  19. +-------------------------------+--------------------------------------------------------------------+-----------------------+
  20. | :ref:`Vector2<class_Vector2>` | :ref:`size<class_VisualScriptComment_property_size>` | ``Vector2(150, 150)`` |
  21. +-------------------------------+--------------------------------------------------------------------+-----------------------+
  22. | :ref:`String<class_String>` | :ref:`title<class_VisualScriptComment_property_title>` | ``"Comment"`` |
  23. +-------------------------------+--------------------------------------------------------------------+-----------------------+
  24. Property Descriptions
  25. ---------------------
  26. .. _class_VisualScriptComment_property_description:
  27. - :ref:`String<class_String>` **description**
  28. +-----------+------------------------+
  29. | *Default* | ``""`` |
  30. +-----------+------------------------+
  31. | *Setter* | set_description(value) |
  32. +-----------+------------------------+
  33. | *Getter* | get_description() |
  34. +-----------+------------------------+
  35. The text inside the comment node.
  36. ----
  37. .. _class_VisualScriptComment_property_size:
  38. - :ref:`Vector2<class_Vector2>` **size**
  39. +-----------+-----------------------+
  40. | *Default* | ``Vector2(150, 150)`` |
  41. +-----------+-----------------------+
  42. | *Setter* | set_size(value) |
  43. +-----------+-----------------------+
  44. | *Getter* | get_size() |
  45. +-----------+-----------------------+
  46. The comment node's size (in pixels).
  47. ----
  48. .. _class_VisualScriptComment_property_title:
  49. - :ref:`String<class_String>` **title**
  50. +-----------+------------------+
  51. | *Default* | ``"Comment"`` |
  52. +-----------+------------------+
  53. | *Setter* | set_title(value) |
  54. +-----------+------------------+
  55. | *Getter* | get_title() |
  56. +-----------+------------------+
  57. The comment node's title.
  58. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  59. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  60. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  61. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  62. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  63. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`