Reference¶
Inherits: Object
Inherited By: RegEx, SpatialGizmo, EditorScenePostImport, PhysicsShapeQueryResult, Physics2DTestMotionResult, FuncRef, File, TCP_Server, Physics2DShapeQueryResult, ConfigFile, StreamPeer, HTTPClient, AudioStreamPlayback, Physics2DShapeQueryParameters, SurfaceTool, EditorExportPlugin, EditorScript, Mutex, PacketPeer, Semaphore, XMLParser, EditorImportPlugin, Directory, Marshalls, MoNativeClass, AStar, SceneState, PCKPacker, MeshDataTool, WeakRef, Resource, Thread, PackedDataContainerRef, ResourceInteractiveLoader, MoFunctionState, ResourceImportMetadata, PhysicsShapeQueryParameters
Category: Core
Brief Description¶
Base class for anything that keeps a reference count.
Member Functions¶
init_ref ( ) |
|
void |
reference ( ) |
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¶
bool init_ref ( )
void 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.