how to Detect in wich Room the Player is

I have a main Camera with a public Transform input for which Room the player is in (don’t worry about what this means exactly). so I want the input to change the object (from which it’s getting its transform)
depending on which room the player is in. I have a Box setup for every Room (it’s encasing every Room) so is there a way to say:
if Player is inside the Box of RoomOne change public input to RoomOne?

Hello!
you can attach a box collider to the box that the player is entering in…
check the IsTrigger option and use OnTriggerEnter funcion…

hope this helps