Hey,
I’m trying to create a range circle for my tower defense towers. I assume this is an easy task, but I’m having some trouble. I don’t quite understand how I get a pixel perfect representation of range.
I know I could make a circle and guess the scale it needs to be to match it, but that seems overly difficult. Is there any kind of code or something that will help me out with this?
Thanks!
You may want to check out the gl class Unity - Scripting API: GL
It may be the way to go for what you’re trying to achieve.
lol that doesn’t seem simple at all O.o. Is that really the only way to go about doing it? Or rather, the most accurate and “easy” way?
Plus, that looks like it’s really only meant for drawing lines, quads, and tris. I need a circle, which would be a hell of a lot of quads/tris, which seems counter-intuitive.
Line is what you need from there. Other than that you can use a mesh, but I can’t think of any other way to do it prgrammatically
To clarify I mean a square plane with the circle texture on it an if you use conistent units you can change the scale of the mesh.
Gl is pro only, just an fyi.