How to use two differnt cameras to render diffenet objects at a same time?

Hi, I am working on a FPS game where the character is having one gun. The problem is if the player is near to any wall or something the gun is going in the wall mesh, so is there any way of using two different cameras that one camera will render the environment and other camera will render the gun and show the composition the same time? Or is there any other method of doing this?
I worked in unity before, there is used this method of two cameras
Unity Tutorial - Multiple Camera FPS Setup - YouTube (something like this)
Thank you!

Hey there, acording to this so far it’s not possible.

Is there any other way to do that???

To minimize that you can add a weapon retract animation when the weapon clios through something.