I am making a game with a Top-down perspective and want to achive this effect when going into rooms:

I want it so if The player manages to peek out of bounds it just shows a black sybox, But then that would also bring problems because it would be visible from anywhere. Maybe a way to change the skybox locally if the player is in a room?