Camera overlay not transparent issue.

I want to find a method to maintain the “outline effect” and the “occlusion relationship of objects”, but change the white material color to transparent so that I can overlay the view of this camera2 on another camera.

Edit the assigned material. Change it from opaque to transparent and use a color with alpha less than 255 (or less than 1f).

Hi CodeSmile,
Thankyou for your reply!

I used two methods to achieve the outline effect.

  1. THe first one is use post-processing effect of the camera to draw the outline. In this way the outline will disappear after I change the material from opaque to transparent.
  2. The second method is using the “Unity Toon Shader” package to draw the outline. In this way the outline will also disappear after I turn on the Transparency.

First:


Second: