- Edited
@export var empty_spaces : PackedVector2Array
i can modify the v2 array from the editor then if i save my scene it works
but when i do from code
if Input.is_action_just_pressed("e_key") :
empty_spaces.append(Vector2(debug_press.x,debug_press.y))
print(empty_spaces)
i can see that vector2 gets added but sincei cant save the scene in game it doesnt persist and gets reset
this is for my level editor so i need to find a way to save the added values from code if i dont export it the array then it stops being unique to each level maybe exported variables are saved to nodes i have no idea
is there a way i can save the scene or the exported v2 array from code?