Indicator not turning off on unit not selected

I cannot figure out how to turn the indicator circle off on non selected units. I’ve tried everything I can think of. I’ve watched the video a number of times and have written down the code exactly as it’s portrayed. I’m not getting any errors but something is wrong. Is there a button I need to hit in Unity that I’m missing?

1 Like

Let’s start with a look at your UnitSelectedVisual.cs and UnitActionSystem.cs scripts.

Maybe you just accidentally wrote SetActive(true); on both the show and hide functions

I finally figured it out. I somehow deleted the Mesh Renderer for the UnitSelectedVisual. Once I added that back in, it worked perfectly!

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms