Skip to content

Instantly share code, notes, and snippets.

@Razzlegames
Last active August 29, 2015 14:17
Show Gist options
  • Save Razzlegames/3615f6c96ac109262a06 to your computer and use it in GitHub Desktop.
Save Razzlegames/3615f6c96ac109262a06 to your computer and use it in GitHub Desktop.
var test = null
#*****************************************************************
func _ready():
# This works fine
if(test != null):
# Free resources etc
# ...
print("not null")
# Set the reference to null since it is now invalid
test = null
else:
print("it was null")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment