2d room generation

Hello, I am making a 2 open world horror game where you wander around in a infinite house while avoiding the monsters. I would like to know how to make the rooms procedurally generate and connect to each other with doors and ladders does anyone know how to make this?

You can do trigger Instantiate GameObject put the drigger on the door every time u open it it will Instantiate your new room u can do as many room’s as u like make the same room as prefab an instantiate the same room with the same trigger
just do something like
public GameObject room;
public Transform next;
OnTriggerEnter(Collider other){
Instantiate(room,next.position,next.rotation);
}
just place it right next to other room so they need to fit perfectly an there u have it :smiley: