Base class for all non built-in types. Everything not a built-in type starts the inheritance chain from this class.
Objects do not manage memory, if inheriting from one the object will most likely have to be deleted manually (call the [method free] function from the script or delete from C++).
Some derivatives add memory management, such as [Reference] (which keeps a reference count and deletes itself automatically when no longer referenced) and [Node], which deletes the children tree when deleted.
Objects export properties, which are mainly useful for storage and editing, but not really so much in programming. Properties are exported in [method _get_property_list] and handled in [method _get] and [method _set]. However, scripting languages and C++ have simpler means to export them.
Objects also receive notifications ([method _notification]). Notifications are a simple way to notify the object about simple events, so they can all be handled together.
</description>
<tutorials>
</tutorials>
<demos>
</demos>
<methods>
<methodname="_get"qualifiers="virtual">
<returntype="void">
</return>
<argumentindex="0"name="property"type="String">
</argument>
<description>
Return a property, return null if the property does not exist.
Return the property list, array of dictionaries, dictionaries must contain: name:String, type:int (see TYPE_* enum in [@Global Scope]) and optionally: hint:int (see PROPERTY_HINT_* in [@Global Scope]), hint_string:String, usage:int (see PROPERTY_USAGE_* in [@Global Scope]).
</description>
</method>
<methodname="_init"qualifiers="virtual">
<returntype="void">
</return>
<description>
</description>
</method>
<methodname="_notification"qualifiers="virtual">
<returntype="void">
</return>
<argumentindex="0"name="what"type="int">
</argument>
<description>
Notification request, the notification id is received.
</description>
</method>
<methodname="_set"qualifiers="virtual">
<returntype="bool">
</return>
<argumentindex="0"name="property"type="String">
</argument>
<argumentindex="1"name="value"type="Variant">
</argument>
<description>
Set a property. Return true if the property was found.
Add a user signal (can be added anytime). Arguments are optional, but can be added as an array of dictionaries, each containing "name" and "type" (from [@Global Scope] TYPE_*).
Connect a signal to a method at a target (member function). Binds are optional and are passed as extra arguments to the call. Flags specify optional deferred or one shot connections, see enum CONNECT_*. A signal can only be connected once to a method, and it will throw an error if already connected. If you want to avoid this, use [method is_connected] to check.
Return the list of properties as an array of dictionaries, dictionaries contain: name:String, type:int (see TYPE_* enum in [@Global Scope]) and optionally: hint:int (see PROPERTY_HINT_* in [@Global Scope]), hint_string:String, usage:int (see PROPERTY_USAGE_* in [@Global Scope]).
</description>
</method>
<methodname="get_script"qualifiers="const">
<returntype="Reference">
</return>
<description>
Return the object script (or null if it doesn't have one).