I am attempting to to highlight or color an area on the terrain object that represents the range of a tower in a tower defense style game. For some towers a simple 2d range will work fine, others I want the range to change based on whether it is shooting uphill or downhill.
One way I thought of doing this is to have a cylinder or spherical object/collider and color the terrain inside. Is there any way to do this easily?
You can use a projector to colour a surface temporarily. You can vary the size by making the projector orthographic and changing the value of the orthographicSize property.
Thanks for the tip. I’m not sure how I could shape the projected image to the odd shapes it would require. Is there any easy way to clip this or have it only show inside a collider?
I think I can represent my range by a shape collider and use the collision points to draw the circle-ish shape on the terrain with thin colored cubes, i may have to play around to get it to look good.