- Home /
Need advice in approaching a visibility mechanic through collision [Unity3d]
So on this image the black border is the camera screen the red box is the player the blue circle around the player is a visibility radius the green are objects on player's path
I need help in approaching a mechanic to where the player has a radius (blue circle) to which when approached or collided upon it renders the part of the object (green) transparent or see-through on the collided or overlapped area.
I wanted to know if, it's possible to use with a Shader through collision system. If so how would I approach this? maybe through having two materials in an object?
The other approach would be having a panel or an object in the Canvas to which only on that part of the screen it renders the object only with a transparent shader if it's possible.
Or is there any other way to do it ?
Your answer
![](https://koobas.hobune.stream/wayback/20220612191212im_/https://answers.unity.com/themes/thub/images/avi.jpg)