Reference

Inherits: Object

Inherited By: ARVRInterface, AStar, AnimationTrackEditPlugin, AudioStreamPlayback, ConfigFile, Directory, EditorExportPlugin, EditorImportPlugin, EditorInspectorPlugin, EditorResourceConversionPlugin, EditorResourcePreviewGenerator, EditorSceneImporter, EditorScenePostImport, EditorScript, EncodedObjectAsID, Expression, File, FuncRef, GDNative, GDScriptFunctionState, GDScriptNativeClass, HTTPClient, JSONParseResult, KinematicCollision, KinematicCollision2D, Marshalls, MeshDataTool, MultiplayerAPI, Mutex, PCKPacker, PackedDataContainerRef, PacketPeer, Physics2DShapeQueryParameters, Physics2DShapeQueryResult, Physics2DTestMotionResult, PhysicsShapeQueryParameters, PhysicsShapeQueryResult, RandomNumberGenerator, RegEx, RegExMatch, Resource, ResourceFormatLoader, ResourceFormatSaver, ResourceImporter, ResourceInteractiveLoader, SceneState, SceneTreeTimer, Semaphore, SpatialGizmo, SpatialVelocityTracker, StreamPeer, SurfaceTool, TCP_Server, Thread, TriangleMesh, UPNP, UPNPDevice, VisualScriptFunctionState, WeakRef, XMLParser

Category: Core

Brief Description

Base class for anything that keeps a reference count.

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.

Method Descriptions

  • bool reference ( )

Increase the internal reference counter. Use this only if you really know what you are doing.

  • bool unreference ( )

Decrease the internal reference counter. Use this only if you really know what you are doing.