class_reference - dragonsoulz/godot GitHub Wiki

Reference

####Inherits: Object ####Category: Core

Brief Description

Base class for anything refcounted.

Member Functions

Description

Base class for anything refcounted. 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

reference

  • void reference ( )

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

unreference

  • bool unreference ( )

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