I am making a game whose levels are randomly generated. Each level is constructed of adjacent rooms in their own Room
blueprint (Actor).
My intent was to create a Room Manager
blueprint (Actor), which had an array of rooms. So if my level had bounds of 10x10, I’d initialize the array with 100 blanks, and then add rooms as necessary throughout my generation. I’d probably limit the number of rooms to 20, so the array would have 20 unique Rooms, and 80 blanks.
Problem is, I can’t seem to figure out how to spawn copies of the array elements into my game world. Let’s say I want to show the first room of my level. How exactly do I fetch that room from my array, and spawn it?