- Home /
Mask a MeshRenderer
Hello! I have a moving MeshRenderer (a Plane). I need to hide it / not show it as soon as it enters a certain region of space in the game, delimited by a curved line. I only need to hide the portion of the mesh that enters the region, I cannot disable the entire GameObject.
To make things more interesting, there are other objects that can cross the same curved line but need to remain visible.
I have tried experimenting a little with ZBuffer and Stencil concepts but I am completely stuck now.
Thanks for your help!
Your answer
Follow this Question
Related Questions
How to change a specific material of an object at runtime ? 2 Answers
Skinned Mesh Count more or less better? 1 Answer
Turn off castShadow in Unity5 1 Answer
Are there any performance benefits to non-skinned characters? 0 Answers
Cannot implicitly convert type UnityEngine.MeshRenderer to UnityEngine.Material. 1 Answer