Hello, I’m trying to build a house where players need to go to multiple rooms to collect cubes and bring them out to a central hallway. I thought about loading each room differently with the cubes spawning in each room and then unloading the rooms as the player exits. To enable the cubes to be brought out of the rooms, I used the DontDestroyOnLoad(gameObject) method, but when the room unloads, the cubes will fall into the void.
Is using an empty game object hovering in the room and using cube.position = hover.transform.position a good work-around for this gravity problem? It won’t let me bring the cube out of the rooms, but it prevents the cube from falling to the void.
Would it be better to set an invisible floor that loads after the player leaves the room instead?
The lighting in each room also gets disabled every time I load my scene, is this a common problem? (As shown in the pictures)
I tried putting the light source as a child of the Room, but it still won’t load any light source. Is there something I’m missing about light sources?
Thank you in advance for any help, I’m new here so a direction towards older threads are welcome!