class_nativescript.rst 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/make_rst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the NativeScript.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_NativeScript:
  6. NativeScript
  7. ============
  8. **Inherits:** :ref:`Script<class_Script>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  9. Properties
  10. ----------
  11. +-----------------------------------------------+-----------------------------------------------------------------------------------+--------+
  12. | :ref:`String<class_String>` | :ref:`class_name<class_NativeScript_property_class_name>` | ``""`` |
  13. +-----------------------------------------------+-----------------------------------------------------------------------------------+--------+
  14. | :ref:`GDNativeLibrary<class_GDNativeLibrary>` | :ref:`library<class_NativeScript_property_library>` | |
  15. +-----------------------------------------------+-----------------------------------------------------------------------------------+--------+
  16. | :ref:`String<class_String>` | :ref:`script_class_icon_path<class_NativeScript_property_script_class_icon_path>` | ``""`` |
  17. +-----------------------------------------------+-----------------------------------------------------------------------------------+--------+
  18. | :ref:`String<class_String>` | :ref:`script_class_name<class_NativeScript_property_script_class_name>` | ``""`` |
  19. +-----------------------------------------------+-----------------------------------------------------------------------------------+--------+
  20. Methods
  21. -------
  22. +-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+
  23. | :ref:`String<class_String>` | :ref:`get_class_documentation<class_NativeScript_method_get_class_documentation>` **(** **)** |const| |
  24. +-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+
  25. | :ref:`String<class_String>` | :ref:`get_method_documentation<class_NativeScript_method_get_method_documentation>` **(** :ref:`String<class_String>` method **)** |const| |
  26. +-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+
  27. | :ref:`String<class_String>` | :ref:`get_property_documentation<class_NativeScript_method_get_property_documentation>` **(** :ref:`String<class_String>` path **)** |const| |
  28. +-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+
  29. | :ref:`String<class_String>` | :ref:`get_signal_documentation<class_NativeScript_method_get_signal_documentation>` **(** :ref:`String<class_String>` signal_name **)** |const| |
  30. +-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+
  31. | :ref:`Variant<class_Variant>` | :ref:`new<class_NativeScript_method_new>` **(** ... **)** |vararg| |
  32. +-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+
  33. Property Descriptions
  34. ---------------------
  35. .. _class_NativeScript_property_class_name:
  36. - :ref:`String<class_String>` **class_name**
  37. +-----------+-----------------------+
  38. | *Default* | ``""`` |
  39. +-----------+-----------------------+
  40. | *Setter* | set_class_name(value) |
  41. +-----------+-----------------------+
  42. | *Getter* | get_class_name() |
  43. +-----------+-----------------------+
  44. ----
  45. .. _class_NativeScript_property_library:
  46. - :ref:`GDNativeLibrary<class_GDNativeLibrary>` **library**
  47. +----------+--------------------+
  48. | *Setter* | set_library(value) |
  49. +----------+--------------------+
  50. | *Getter* | get_library() |
  51. +----------+--------------------+
  52. ----
  53. .. _class_NativeScript_property_script_class_icon_path:
  54. - :ref:`String<class_String>` **script_class_icon_path**
  55. +-----------+-----------------------------------+
  56. | *Default* | ``""`` |
  57. +-----------+-----------------------------------+
  58. | *Setter* | set_script_class_icon_path(value) |
  59. +-----------+-----------------------------------+
  60. | *Getter* | get_script_class_icon_path() |
  61. +-----------+-----------------------------------+
  62. ----
  63. .. _class_NativeScript_property_script_class_name:
  64. - :ref:`String<class_String>` **script_class_name**
  65. +-----------+------------------------------+
  66. | *Default* | ``""`` |
  67. +-----------+------------------------------+
  68. | *Setter* | set_script_class_name(value) |
  69. +-----------+------------------------------+
  70. | *Getter* | get_script_class_name() |
  71. +-----------+------------------------------+
  72. Method Descriptions
  73. -------------------
  74. .. _class_NativeScript_method_get_class_documentation:
  75. - :ref:`String<class_String>` **get_class_documentation** **(** **)** |const|
  76. Returns the documentation string that was previously set with ``godot_nativescript_set_class_documentation``.
  77. ----
  78. .. _class_NativeScript_method_get_method_documentation:
  79. - :ref:`String<class_String>` **get_method_documentation** **(** :ref:`String<class_String>` method **)** |const|
  80. Returns the documentation string that was previously set with ``godot_nativescript_set_method_documentation``.
  81. ----
  82. .. _class_NativeScript_method_get_property_documentation:
  83. - :ref:`String<class_String>` **get_property_documentation** **(** :ref:`String<class_String>` path **)** |const|
  84. Returns the documentation string that was previously set with ``godot_nativescript_set_property_documentation``.
  85. ----
  86. .. _class_NativeScript_method_get_signal_documentation:
  87. - :ref:`String<class_String>` **get_signal_documentation** **(** :ref:`String<class_String>` signal_name **)** |const|
  88. Returns the documentation string that was previously set with ``godot_nativescript_set_signal_documentation``.
  89. ----
  90. .. _class_NativeScript_method_new:
  91. - :ref:`Variant<class_Variant>` **new** **(** ... **)** |vararg|
  92. Constructs a new object of the base type with a script of this type already attached.
  93. **Note:** Any arguments passed to this function will be ignored and not passed to the native constructor function. This will change with in a future API extension.
  94. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  95. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  96. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`