class_object.rst 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the Object.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_Object:
  5. Object
  6. ======
  7. **Inherited By:** :ref:`Reference<class_reference>`, :ref:`Physics2DServer<class_physics2dserver>`, :ref:`MainLoop<class_mainloop>`, :ref:`Input<class_input>`, :ref:`Node<class_node>`, :ref:`Geometry<class_geometry>`, :ref:`ARVRPositionalTracker<class_arvrpositionaltracker>`, :ref:`TreeItem<class_treeitem>`, :ref:`PhysicsDirectBodyState<class_physicsdirectbodystate>`, :ref:`JavaScript<class_javascript>`, :ref:`ARVRServer<class_arvrserver>`, :ref:`PhysicsDirectSpaceState<class_physicsdirectspacestate>`, :ref:`Engine<class_engine>`, :ref:`Physics2DDirectSpaceState<class_physics2ddirectspacestate>`, :ref:`InputMap<class_inputmap>`, :ref:`UndoRedo<class_undoredo>`, :ref:`PhysicsServer<class_physicsserver>`, :ref:`ProjectSettings<class_projectsettings>`, :ref:`ResourceSaver<class_resourcesaver>`, :ref:`Performance<class_performance>`, :ref:`ResourceLoader<class_resourceloader>`, :ref:`JSON<class_json>`, :ref:`AudioServer<class_audioserver>`, :ref:`IP<class_ip>`, :ref:`ClassDB<class_classdb>`, :ref:`VisualServer<class_visualserver>`, :ref:`OS<class_os>`, :ref:`GodotSharp<class_godotsharp>`, :ref:`EditorSelection<class_editorselection>`, :ref:`Physics2DDirectBodyState<class_physics2ddirectbodystate>`, :ref:`VisualScriptEditor<class_visualscripteditor>`, :ref:`TranslationServer<class_translationserver>`, :ref:`EditorFileSystemDirectory<class_editorfilesystemdirectory>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. Base class for all non built-in types.
  12. Member Functions
  13. ----------------
  14. +------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  15. | void | :ref:`_get<class_Object__get>` **(** :ref:`String<class_string>` property **)** virtual |
  16. +------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  17. | :ref:`Array<class_array>` | :ref:`_get_property_list<class_Object__get_property_list>` **(** **)** virtual |
  18. +------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  19. | void | :ref:`_init<class_Object__init>` **(** **)** virtual |
  20. +------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  21. | void | :ref:`_notification<class_Object__notification>` **(** :ref:`int<class_int>` what **)** virtual |
  22. +------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  23. | :ref:`bool<class_bool>` | :ref:`_set<class_Object__set>` **(** :ref:`String<class_string>` property, :ref:`Variant<class_variant>` value **)** virtual |
  24. +------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  25. | void | :ref:`add_user_signal<class_Object_add_user_signal>` **(** :ref:`String<class_string>` signal, :ref:`Array<class_array>` arguments=[ ] **)** |
  26. +------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  27. | :ref:`Variant<class_variant>` | :ref:`call<class_Object_call>` **(** :ref:`String<class_string>` method **)** vararg |
  28. +------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  29. | :ref:`Variant<class_variant>` | :ref:`call_deferred<class_Object_call_deferred>` **(** :ref:`String<class_string>` method **)** vararg |
  30. +------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  31. | :ref:`Variant<class_variant>` | :ref:`callv<class_Object_callv>` **(** :ref:`String<class_string>` method, :ref:`Array<class_array>` arg_array **)** |
  32. +------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  33. | :ref:`bool<class_bool>` | :ref:`can_translate_messages<class_Object_can_translate_messages>` **(** **)** const |
  34. +------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  35. | :ref:`int<class_int>` | :ref:`connect<class_Object_connect>` **(** :ref:`String<class_string>` signal, :ref:`Object<class_object>` target, :ref:`String<class_string>` method, :ref:`Array<class_array>` binds=[ ], :ref:`int<class_int>` flags=0 **)** |
  36. +------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  37. | void | :ref:`disconnect<class_Object_disconnect>` **(** :ref:`String<class_string>` signal, :ref:`Object<class_object>` target, :ref:`String<class_string>` method **)** |
  38. +------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  39. | :ref:`Variant<class_variant>` | :ref:`emit_signal<class_Object_emit_signal>` **(** :ref:`String<class_string>` signal **)** vararg |
  40. +------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  41. | void | :ref:`free<class_Object_free>` **(** **)** |
  42. +------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  43. | :ref:`Variant<class_variant>` | :ref:`get<class_Object_get>` **(** :ref:`String<class_string>` property **)** const |
  44. +------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  45. | :ref:`String<class_string>` | :ref:`get_class<class_Object_get_class>` **(** **)** const |
  46. +------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  47. | :ref:`Array<class_array>` | :ref:`get_incoming_connections<class_Object_get_incoming_connections>` **(** **)** const |
  48. +------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  49. | :ref:`Variant<class_variant>` | :ref:`get_indexed<class_Object_get_indexed>` **(** :ref:`NodePath<class_nodepath>` property **)** const |
  50. +------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  51. | :ref:`int<class_int>` | :ref:`get_instance_id<class_Object_get_instance_id>` **(** **)** const |
  52. +------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  53. | :ref:`Variant<class_variant>` | :ref:`get_meta<class_Object_get_meta>` **(** :ref:`String<class_string>` name **)** const |
  54. +------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  55. | :ref:`PoolStringArray<class_poolstringarray>` | :ref:`get_meta_list<class_Object_get_meta_list>` **(** **)** const |
  56. +------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  57. | :ref:`Array<class_array>` | :ref:`get_method_list<class_Object_get_method_list>` **(** **)** const |
  58. +------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  59. | :ref:`Array<class_array>` | :ref:`get_property_list<class_Object_get_property_list>` **(** **)** const |
  60. +------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  61. | :ref:`Reference<class_reference>` | :ref:`get_script<class_Object_get_script>` **(** **)** const |
  62. +------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  63. | :ref:`Array<class_array>` | :ref:`get_signal_connection_list<class_Object_get_signal_connection_list>` **(** :ref:`String<class_string>` signal **)** const |
  64. +------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  65. | :ref:`Array<class_array>` | :ref:`get_signal_list<class_Object_get_signal_list>` **(** **)** const |
  66. +------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  67. | :ref:`bool<class_bool>` | :ref:`has_meta<class_Object_has_meta>` **(** :ref:`String<class_string>` name **)** const |
  68. +------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  69. | :ref:`bool<class_bool>` | :ref:`has_method<class_Object_has_method>` **(** :ref:`String<class_string>` method **)** const |
  70. +------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  71. | :ref:`bool<class_bool>` | :ref:`has_user_signal<class_Object_has_user_signal>` **(** :ref:`String<class_string>` signal **)** const |
  72. +------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  73. | :ref:`bool<class_bool>` | :ref:`is_blocking_signals<class_Object_is_blocking_signals>` **(** **)** const |
  74. +------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  75. | :ref:`bool<class_bool>` | :ref:`is_class<class_Object_is_class>` **(** :ref:`String<class_string>` type **)** const |
  76. +------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  77. | :ref:`bool<class_bool>` | :ref:`is_connected<class_Object_is_connected>` **(** :ref:`String<class_string>` signal, :ref:`Object<class_object>` target, :ref:`String<class_string>` method **)** const |
  78. +------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  79. | :ref:`bool<class_bool>` | :ref:`is_queued_for_deletion<class_Object_is_queued_for_deletion>` **(** **)** const |
  80. +------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  81. | void | :ref:`notification<class_Object_notification>` **(** :ref:`int<class_int>` what, :ref:`bool<class_bool>` reversed=false **)** |
  82. +------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  83. | void | :ref:`property_list_changed_notify<class_Object_property_list_changed_notify>` **(** **)** |
  84. +------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  85. | void | :ref:`set<class_Object_set>` **(** :ref:`String<class_string>` property, :ref:`Variant<class_variant>` value **)** |
  86. +------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  87. | void | :ref:`set_block_signals<class_Object_set_block_signals>` **(** :ref:`bool<class_bool>` enable **)** |
  88. +------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  89. | void | :ref:`set_indexed<class_Object_set_indexed>` **(** :ref:`NodePath<class_nodepath>` property, :ref:`Variant<class_variant>` value **)** |
  90. +------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  91. | void | :ref:`set_message_translation<class_Object_set_message_translation>` **(** :ref:`bool<class_bool>` enable **)** |
  92. +------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  93. | void | :ref:`set_meta<class_Object_set_meta>` **(** :ref:`String<class_string>` name, :ref:`Variant<class_variant>` value **)** |
  94. +------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  95. | void | :ref:`set_script<class_Object_set_script>` **(** :ref:`Reference<class_reference>` script **)** |
  96. +------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  97. | :ref:`String<class_string>` | :ref:`tr<class_Object_tr>` **(** :ref:`String<class_string>` message **)** const |
  98. +------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  99. Signals
  100. -------
  101. .. _class_Object_script_changed:
  102. - **script_changed** **(** **)**
  103. Emitted whenever the script of the Object is changed.
  104. Numeric Constants
  105. -----------------
  106. - **NOTIFICATION_POSTINITIALIZE** = **0** --- Called right when the object is initialized. Not available in script.
  107. - **NOTIFICATION_PREDELETE** = **1** --- Called before the object is about to be deleted.
  108. Enums
  109. -----
  110. .. _enum_Object_ConnectFlags:
  111. enum **ConnectFlags**
  112. - **CONNECT_DEFERRED** = **1** --- Connect a signal in deferred mode. This way, signal emissions are stored in a queue, then set on idle time.
  113. - **CONNECT_PERSIST** = **2** --- Persisting connections are saved when the object is serialized to file.
  114. - **CONNECT_ONESHOT** = **4** --- One shot connections disconnect themselves after emission.
  115. Description
  116. -----------
  117. Base class for all non built-in types. Everything not a built-in type starts the inheritance chain from this class.
  118. Objects do not manage memory, if inheriting from one the object will most likely have to be deleted manually (call the :ref:`free<class_Object_free>` function from the script or delete from C++).
  119. Some derivatives add memory management, such as :ref:`Reference<class_reference>` (which keeps a reference count and deletes itself automatically when no longer referenced) and :ref:`Node<class_node>`, which deletes the children tree when deleted.
  120. Objects export properties, which are mainly useful for storage and editing, but not really so much in programming. Properties are exported in :ref:`_get_property_list<class_Object__get_property_list>` and handled in :ref:`_get<class_Object__get>` and :ref:`_set<class_Object__set>`. However, scripting languages and C++ have simpler means to export them.
  121. Objects also receive notifications (:ref:`_notification<class_Object__notification>`). Notifications are a simple way to notify the object about simple events, so they can all be handled together.
  122. Member Function Description
  123. ---------------------------
  124. .. _class_Object__get:
  125. - void **_get** **(** :ref:`String<class_string>` property **)** virtual
  126. Returns the given property. Returns ``null`` if the ``property`` does not exist.
  127. .. _class_Object__get_property_list:
  128. - :ref:`Array<class_array>` **_get_property_list** **(** **)** virtual
  129. Returns the object's property list as an :ref:`Array<class_array>` of dictionaries. Dictionaries must contain: name:String, type:int (see TYPE\_\* enum in :ref:`@GlobalScope<class_@globalscope>`) and optionally: hint:int (see PROPERTY_HINT\_\* in :ref:`@GlobalScope<class_@globalscope>`), hint_string:String, usage:int (see PROPERTY_USAGE\_\* in :ref:`@GlobalScope<class_@globalscope>`).
  130. .. _class_Object__init:
  131. - void **_init** **(** **)** virtual
  132. The virtual method called upon initialization.
  133. .. _class_Object__notification:
  134. - void **_notification** **(** :ref:`int<class_int>` what **)** virtual
  135. Notify the object internally using an ID.
  136. .. _class_Object__set:
  137. - :ref:`bool<class_bool>` **_set** **(** :ref:`String<class_string>` property, :ref:`Variant<class_variant>` value **)** virtual
  138. Sets a property. Returns ``true`` if the ``property`` exists.
  139. .. _class_Object_add_user_signal:
  140. - void **add_user_signal** **(** :ref:`String<class_string>` signal, :ref:`Array<class_array>` arguments=[ ] **)**
  141. Adds a user-defined ``signal``. Arguments are optional, but can be added as an :ref:`Array<class_array>` of dictionaries, each containing "name" and "type" (from :ref:`@GlobalScope<class_@globalscope>` TYPE\_\*).
  142. .. _class_Object_call:
  143. - :ref:`Variant<class_variant>` **call** **(** :ref:`String<class_string>` method **)** vararg
  144. Calls the ``method`` on the object and returns a result. Pass parameters as a comma separated list.
  145. .. _class_Object_call_deferred:
  146. - :ref:`Variant<class_variant>` **call_deferred** **(** :ref:`String<class_string>` method **)** vararg
  147. Calls the ``method`` on the object during idle time and returns a result. Pass parameters as a comma separated list.
  148. .. _class_Object_callv:
  149. - :ref:`Variant<class_variant>` **callv** **(** :ref:`String<class_string>` method, :ref:`Array<class_array>` arg_array **)**
  150. Calls the ``method`` on the object and returns a result. Pass parameters as an :ref:`Array<class_array>`.
  151. .. _class_Object_can_translate_messages:
  152. - :ref:`bool<class_bool>` **can_translate_messages** **(** **)** const
  153. Returns ``true`` if the object can translate strings.
  154. .. _class_Object_connect:
  155. - :ref:`int<class_int>` **connect** **(** :ref:`String<class_string>` signal, :ref:`Object<class_object>` target, :ref:`String<class_string>` method, :ref:`Array<class_array>` binds=[ ], :ref:`int<class_int>` flags=0 **)**
  156. Connects a ``signal`` to a ``method`` on a ``target`` object. Pass optional ``binds`` to the call. Use ``flags`` to set deferred or one shot connections. See ``CONNECT_*`` constants. A ``signal`` can only be connected once to a ``method``. It will throw an error if already connected. To avoid this, first use :ref:`is_connected<class_Object_is_connected>` to check for existing connections.
  157. .. _class_Object_disconnect:
  158. - void **disconnect** **(** :ref:`String<class_string>` signal, :ref:`Object<class_object>` target, :ref:`String<class_string>` method **)**
  159. Disconnects a ``signal`` from a ``method`` on the given ``target``.
  160. .. _class_Object_emit_signal:
  161. - :ref:`Variant<class_variant>` **emit_signal** **(** :ref:`String<class_string>` signal **)** vararg
  162. Emits the given ``signal``.
  163. .. _class_Object_free:
  164. - void **free** **(** **)**
  165. Deletes the object from memory.
  166. .. _class_Object_get:
  167. - :ref:`Variant<class_variant>` **get** **(** :ref:`String<class_string>` property **)** const
  168. Returns a :ref:`Variant<class_variant>` for a ``property``.
  169. .. _class_Object_get_class:
  170. - :ref:`String<class_string>` **get_class** **(** **)** const
  171. Returns the object's class as a :ref:`String<class_string>`.
  172. .. _class_Object_get_incoming_connections:
  173. - :ref:`Array<class_array>` **get_incoming_connections** **(** **)** const
  174. Returns an :ref:`Array<class_array>` of dictionaries with information about signals that are connected to the object.
  175. Inside each :ref:`Dictionary<class_dictionary>` there are 3 fields:
  176. - "source" is a reference to signal emitter.
  177. - "signal_name" is name of connected signal.
  178. - "method_name" is a name of method to which signal is connected.
  179. .. _class_Object_get_indexed:
  180. - :ref:`Variant<class_variant>` **get_indexed** **(** :ref:`NodePath<class_nodepath>` property **)** const
  181. .. _class_Object_get_instance_id:
  182. - :ref:`int<class_int>` **get_instance_id** **(** **)** const
  183. Returns the object's unique instance ID.
  184. .. _class_Object_get_meta:
  185. - :ref:`Variant<class_variant>` **get_meta** **(** :ref:`String<class_string>` name **)** const
  186. Returns the object's metadata for the given ``name``.
  187. .. _class_Object_get_meta_list:
  188. - :ref:`PoolStringArray<class_poolstringarray>` **get_meta_list** **(** **)** const
  189. Returns the object's metadata as a :ref:`PoolStringArray<class_poolstringarray>`.
  190. .. _class_Object_get_method_list:
  191. - :ref:`Array<class_array>` **get_method_list** **(** **)** const
  192. Returns the object's methods and their signatures as an :ref:`Array<class_array>`.
  193. .. _class_Object_get_property_list:
  194. - :ref:`Array<class_array>` **get_property_list** **(** **)** const
  195. Returns the list of properties as an :ref:`Array<class_array>` of dictionaries. Dictionaries contain: name:String, type:int (see TYPE\_\* enum in :ref:`@GlobalScope<class_@globalscope>`) and optionally: hint:int (see PROPERTY_HINT\_\* in :ref:`@GlobalScope<class_@globalscope>`), hint_string:String, usage:int (see PROPERTY_USAGE\_\* in :ref:`@GlobalScope<class_@globalscope>`).
  196. .. _class_Object_get_script:
  197. - :ref:`Reference<class_reference>` **get_script** **(** **)** const
  198. Returns the object's :ref:`Script<class_script>` or ``null`` if one doesn't exist.
  199. .. _class_Object_get_signal_connection_list:
  200. - :ref:`Array<class_array>` **get_signal_connection_list** **(** :ref:`String<class_string>` signal **)** const
  201. Returns an :ref:`Array<class_array>` of connections for the given ``signal``.
  202. .. _class_Object_get_signal_list:
  203. - :ref:`Array<class_array>` **get_signal_list** **(** **)** const
  204. Returns the list of signals as an :ref:`Array<class_array>` of dictionaries.
  205. .. _class_Object_has_meta:
  206. - :ref:`bool<class_bool>` **has_meta** **(** :ref:`String<class_string>` name **)** const
  207. Returns ``true`` if a metadata is found with the given ``name``.
  208. .. _class_Object_has_method:
  209. - :ref:`bool<class_bool>` **has_method** **(** :ref:`String<class_string>` method **)** const
  210. Returns ``true`` if the object contains the given ``method``.
  211. .. _class_Object_has_user_signal:
  212. - :ref:`bool<class_bool>` **has_user_signal** **(** :ref:`String<class_string>` signal **)** const
  213. Returns ``true`` if the given user-defined ``signal`` exists.
  214. .. _class_Object_is_blocking_signals:
  215. - :ref:`bool<class_bool>` **is_blocking_signals** **(** **)** const
  216. Returns ``true`` if signal emission blocking is enabled.
  217. .. _class_Object_is_class:
  218. - :ref:`bool<class_bool>` **is_class** **(** :ref:`String<class_string>` type **)** const
  219. Returns ``true`` if the object inherits from the given ``type``.
  220. .. _class_Object_is_connected:
  221. - :ref:`bool<class_bool>` **is_connected** **(** :ref:`String<class_string>` signal, :ref:`Object<class_object>` target, :ref:`String<class_string>` method **)** const
  222. Returns ``true`` if a connection exists for a given ``signal``, ``target``, and ``method``.
  223. .. _class_Object_is_queued_for_deletion:
  224. - :ref:`bool<class_bool>` **is_queued_for_deletion** **(** **)** const
  225. Returns ``true`` if the ``queue_free`` method was called for the object.
  226. .. _class_Object_notification:
  227. - void **notification** **(** :ref:`int<class_int>` what, :ref:`bool<class_bool>` reversed=false **)**
  228. Notify the object of something.
  229. .. _class_Object_property_list_changed_notify:
  230. - void **property_list_changed_notify** **(** **)**
  231. .. _class_Object_set:
  232. - void **set** **(** :ref:`String<class_string>` property, :ref:`Variant<class_variant>` value **)**
  233. Set property into the object.
  234. .. _class_Object_set_block_signals:
  235. - void **set_block_signals** **(** :ref:`bool<class_bool>` enable **)**
  236. If set to true, signal emission is blocked.
  237. .. _class_Object_set_indexed:
  238. - void **set_indexed** **(** :ref:`NodePath<class_nodepath>` property, :ref:`Variant<class_variant>` value **)**
  239. .. _class_Object_set_message_translation:
  240. - void **set_message_translation** **(** :ref:`bool<class_bool>` enable **)**
  241. Define whether the object can translate strings (with calls to :ref:`tr<class_Object_tr>`). Default is true.
  242. .. _class_Object_set_meta:
  243. - void **set_meta** **(** :ref:`String<class_string>` name, :ref:`Variant<class_variant>` value **)**
  244. Set a metadata into the object. Metadata is serialized. Metadata can be *anything*.
  245. .. _class_Object_set_script:
  246. - void **set_script** **(** :ref:`Reference<class_reference>` script **)**
  247. Set a script into the object, scripts extend the object functionality.
  248. .. _class_Object_tr:
  249. - :ref:`String<class_string>` **tr** **(** :ref:`String<class_string>` message **)** const
  250. Translate a message. Only works if message translation is enabled (which it is by default). See :ref:`set_message_translation<class_Object_set_message_translation>`.