How do you limit visibility in a top-down game?

Hi! I’m currently working on a top-down game for the first time, and I’m looking to figure something out before I get too far.

Basically, I’m looking to create a top-down game where you travel from room to room in a 3D structure. I don’t plan on letting the player see outside the structure, but more importantly, I don’t want the player to be able to see anything not within the player character’s line of sight. As it is now, I can actually see into other rooms by hugging the walls of whatever room my character is in.

I know other top-down games don’t have this problem, so I’m certain it’s possible to fix this issue, but I don’t know how to myself.

Hello there @TheRealQuilithin!

Since you are aiming for a line of sight system, I believe this tutorial would be a great option for your project, please check it out: