how do i reference an array on one node from another node?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By elfy

I have a 2d level generator that writes a randomized array, then builds a tile map from it. I want to rebuild that tile map in a viewport to use as a minimap. However, I’m not clear on if there’s an ideal way to reference the array from the first node in the viewport node? nodepath doesn’t seem to work (or i’m not doing it correctly)

:bust_in_silhouette: Reply From: Inces

It is best to send this array in a signal. I also did minimap earlier, and every Tile I built I sent with signal, so minimap builded itself too. Optionally You can pass this array to Autoload script and make minimap download it from there