Browse Source

Add is_instance_valid() to GDScript doc.

Juan Linietsky 7 years ago
parent
commit
3fb71b620a
1 changed files with 3 additions and 0 deletions
  1. 3 0
      getting_started/scripting/gdscript/gdscript_basics.rst

+ 3 - 0
getting_started/scripting/gdscript/gdscript_basics.rst

@@ -1238,6 +1238,9 @@ must inherit :ref:`class_Object` manually and must call instance.free(). To
 avoid reference cycles that can't be freed, a ``weakref`` function is
 avoid reference cycles that can't be freed, a ``weakref`` function is
 provided for creating weak references.
 provided for creating weak references.
 
 
+Alternatively, when not using references, the
+``is_instance_valid(instance)`` can be used to check if an object has been
+freed.
 
 
 Signals
 Signals
 ~~~~~~~
 ~~~~~~~