Top Down help

Ok , this may be a noob question but i will ask anyway because i need to know , so i am making a top down game and i need my player to be able to go inside houses but at the moment he can’t because of the roof , so what i need to know is.

When my player is outside the building looks like this
Outside

and then when i am inside i need the roof to go and the player to be able to see like this

Inside

is there a name for this type of feature?

Don’t know what this feature would be called. Fading? Transparency? Obstacle detection?

Anyway, you can accomplish this by casting a Ray from the camera and if the Ray hits any roofs, then update the roof material’s alpha to zero.

Physics.Raycast