Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

gdscript remove deleted objects from array

for object in array:
	if ! is_instance_valid(object):
		array.erase(object)
 
PREVIOUS NEXT
Tagged: #gdscript #remove #deleted #objects #array
ADD COMMENT
Topic
Name
9+8 =