Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.

WeakRef

Inherits: RefCounted < Object

Holds an Object. If the object is RefCounted, it doesn't update the reference count.

Description

A weakref can hold a RefCounted without contributing to the reference counter. A weakref can be created from an Object using