Hello, fellow Unity brothers and sisters.
I, being the complete n00b that I am, have been reading all I could find about this feature I’d love to have, but so far have not found a satisfactory (and, of course, n00b-friendly) answer or explanation.
You see: VERY easily, in the Editor’s Scene view/window, I can enable “Shaded Wireframe” mode to see the actual lines/edges drawn over the PROCEDURALLY GENERATED textured mesh I am, let’s say, working with.
The thing I DESPERATELY WANT is to replicate that look at runtime. Of course, when I go to play mode, bye-bye lines. It is, in my mind, SO APPARENTLY EASY to do, or at least should be, that I haven’t figured out how to do it. Here are a couple of sshots - one as it looks now in play mode, and another (captured in the scene view) that shows how I would like it to look (control of the line color would be a plus, although I am completely fine with the line thickness, and the fact that it stays the same all over and doesn’t show perspective perception, or something like that):
Mesh at runtime / play mode:
Mesh in the Editor window / how I want it to look:
I have three “approaches” I have derived from everything I’ve read/asked, but alas, no final solution yet:
-
Some shader or another. I know there are shaders/assets/whatever out there that could help me do this, but I really don’t want to BUY an asset to solve the problem - I want to LEARN how to solve it;
-
Somebody, VERY knowledgeable suggested me “hey, google Meshtopology.Lines” (and that was it). I did, and this looked promising, until I didn’t find any “entry point” for this in the proc gen tutorial I was following (the only reference to it I found was using said Meshtopology.Lines as a parameter for a SetIndices method that I am not using). Also, not much documentation around about " MeshTopology", nor have I found any useful (and again, n00b-friendly) tutorials about this;
-
Use GL. Now… did I mention I am a n00b? Yeah.
Any, and I mean ANY, pointers towards more information about how to approach a solution to this would be EXTREMELY appreciated (blogs, articles, books, videos, ancient voodoo rituals requiring animal sacrifices or not…)
This can’t be that HARD… or is it?
Many thanks in advance,
Vitor.