W3cubDocs

/Godot 3.0

Reference

Inherits: Object

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

Category: Core

Brief Description

Base class for anything that keeps a reference count.

Member Functions

bool init_ref ( )
bool reference ( )
bool 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 ( )

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.

© 2014–2018 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
http://docs.godotengine.org/en/3.0/classes/class_reference.html