Answer the question
In order to leave comments, you need to log in
What is the best way to make an object have a radius?
There is an object and it should show the radius of action when a person pokes at it. How to do it? I tried to hang the mugs drawn as a child object, but this option did not fit, because a collider hangs on the object and its radius corresponds to the radius that needs to be displayed, and because of this, if I click on the area, it will immediately be highlighted, and I only need to highlight if the person clicked on the tower itself
Answer the question
In order to leave comments, you need to log in
It sounds like the game is isometric, or top down. In these cases, you can just hang a collider on top and poke at it.
Perhaps you were talking about the circle collider, it can be reduced.
In many games (for example, dota 2) To display these circles, a separate button is used (everything is immediately visible).
If the game is like tower defense, you can introduce some additional mechanics, for example, like pylons in StarCraft for the Protos, for this object (or supply line), which will feed (supply ammunition or other resources) towers, look at the characteristics of the required (s) . That is, to obtain the required data in an alternative way.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question