Hi, I am doing a room generator with all its connections. I want to do it in 3D space, so I can have X rooms width, Y rooms height and Z depth, and each room can have 6 possible connections with its neighbour rooms. I made a object called "room" that can store connections information with instance variables. I create X x Y x Z rooms and I save their UIDs in an array, then I run my algorythm and it works fine. Ok, but when I want to start playing, each room is a different layout, so when I load the first layout or whatever, all my "room" instances with its information are lost. Is there anyway to make an array to save object instances instead of only numbers an text? I dont want to use infinite arrays to store all the information and I can't change the layout per room system.
So, Can I save my object instances between layouts? I know there is the persistent behaviour, but I think it wont work like I want, because it saves it for a specific layout. I want to have my X x Y x Z array with my objects UIDs and access that objects in all layouts.
Thanks in advance ^^