.. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the Reference.xml source instead. .. The source is found in doc/classes or modules//doc_classes. .. _class_Reference: Reference ========= **Inherits:** :ref:`Object` **Inherited By:** :ref:`RegExMatch`, :ref:`RegEx`, :ref:`EncodedObjectAsID`, :ref:`SpatialGizmo`, :ref:`TriangleMesh`, :ref:`EditorScenePostImport`, :ref:`PhysicsShapeQueryResult`, :ref:`EditorSceneImporter`, :ref:`Physics2DTestMotionResult`, :ref:`FuncRef`, :ref:`File`, :ref:`TCP_Server`, :ref:`Physics2DShapeQueryResult`, :ref:`ConfigFile`, :ref:`StreamPeer`, :ref:`GDScriptNativeClass`, :ref:`HTTPClient`, :ref:`AudioStreamPlayback`, :ref:`VisualScriptFunctionState`, :ref:`Resource`, :ref:`KinematicCollision`, :ref:`SurfaceTool`, :ref:`JSONParseResult`, :ref:`SpatialVelocityTracker`, :ref:`EditorResourcePreviewGenerator`, :ref:`Physics2DShapeQueryParameters`, :ref:`EditorExportPlugin`, :ref:`ARVRInterface`, :ref:`EditorScript`, :ref:`Mutex`, :ref:`PacketPeer`, :ref:`Semaphore`, :ref:`XMLParser`, :ref:`EditorImportPlugin`, :ref:`Directory`, :ref:`WeakRef`, :ref:`GDScriptFunctionState`, :ref:`Marshalls`, :ref:`SceneState`, :ref:`PCKPacker`, :ref:`MeshDataTool`, :ref:`AStar`, :ref:`ResourceImporter`, :ref:`EditorResourceConversionPlugin`, :ref:`SceneTreeTimer`, :ref:`Thread`, :ref:`ResourceInteractiveLoader`, :ref:`PackedDataContainerRef`, :ref:`KinematicCollision2D`, :ref:`GDNative`, :ref:`PhysicsShapeQueryParameters` **Category:** Core Brief Description ----------------- Base class for anything that keeps a reference count. Member Functions ---------------- +--------------------------+-------------------------------------------------------------+ | :ref:`bool` | :ref:`init_ref` **(** **)** | +--------------------------+-------------------------------------------------------------+ | :ref:`bool` | :ref:`reference` **(** **)** | +--------------------------+-------------------------------------------------------------+ | :ref:`bool` | :ref:`unreference` **(** **)** | +--------------------------+-------------------------------------------------------------+ Description ----------- Base class for anything that keeps a reference count. Resource and many other helper objects inherit this. References keep an internal reference counter so they are only released when no longer in use. Member Function Description --------------------------- .. _class_Reference_init_ref: - :ref:`bool` **init_ref** **(** **)** .. _class_Reference_reference: - :ref:`bool` **reference** **(** **)** Increase the internal reference counter. Use this only if you really know what you are doing. .. _class_Reference_unreference: - :ref:`bool` **unreference** **(** **)** Decrease the internal reference counter. Use this only if you really know what you are doing.