How do I stop the camera through objects?

For example, when my character is very close to the wall and the camera follows her through the wall showing what should not appear, how do I fix this? If you could put the code, please.

Thanks in advance :slight_smile:

Select the camera and in the inspector you will have “Clipping Planes”. Increase the “Near” until you accomplish the wanted effect.