Beginner Question - How to append exported array through inspector

Godot Version

4.3

Question

I’m trying to create a modular script where I can drag and drop nodes into an array through the inspector and hide it through code when it’s not visible on screen. I’m having trouble since the array is returning empty even though I populated it through the inspector. Is there a way I can make this work?

This is how I declared the array
@export var arrToHide :Array[Node2D] = []

Works for me. Can you upload code or screen shots of what you are doing.

image

image

This returns an empty array, even though I populated it in the inspector

I tested it again today and apparently it works now… Idk why it’s not working yesterday, maybe restarting the app has something to do with it.