Show mesh grid lines in runtime

Hi everyone,

I want to see the mesh lines when I click on object. Is there way we can see them in game time. Also, when I select the object it needs to do exactly what happens in the scene view. As you guys know, in the scene view the selected object will show the mesh lines and it will appear semi-transparent and show the arrows (which I already wrote script).

Please don’t write the script for me (I don’t like that). Pseudocode is good and give me some ideas to think about.

The best way to do this is to write a shader that only draws the edges of a triangle.

The other behaviour you’re asking about is quite complex. Try on your own and ask more specific questions, should you run into problems.

selectedObject.renderer.material.SetColor (selectedColor);