How am i supposed to do a range indicator for my tower?

Hello Unity Community,

I want to apologize for my bad english. I dont know if it is good enough.

Im currently working on a 2D Tower Defense and i’ve got some problems with implementing a range indicator.
You can see my problem in the following screenshots. I implemented the range indicator for my tower
as a sprite that is scaled with the tower range. That is obviously not the way it should be done but i searched for examples and i did not find any. Maybe I used the wrong search words. I hope you can help me in this case.


I think you should be able to add a boxcollider2d to and empty object and make the empty object a child of the tower. you can make the boxcollider2d any size you want

The sprite method you used doesn’t loook wrong to me. If the blue border becomes too thick because you scale the sprite up too much, then remember that in the Sprite editor, you can set a pixel border around the sprite that won’t be scaled if you set the in-game sprite to “Sliced”.

1 Like

Ahh, thanks Cherno. That worked. My range indicator was just a sprite on a gameobject and not part of the gui. So the sliced thing did not work. But after a little bit research I figured it out. :slight_smile: