2 Units selected

When I lunch the game, It always selects the first unit and it never deselects it, when I click on the secoud unit it will keep booth of the units selected in. case of 3 units viable to be selected It would select the first and third unit and deselect the second unit why does it happen.

What could be the error and how to fix it? There was a similar issue in the forums, however the given solution in not applicable in this case.

@Brian_Trotter, do you know a solution for this problem?

Sorry for the delay on this, @Karlis_Vebers.
The first character should be getting de-selected when the UnitActionSystem.OnSelectedUnitChanged() fires, as the UnitSelectedVisual should have a subscription to that event.

Are you getting any errors in the inspector? Is there any chance you have an extra UnitSelectedVisual in your scene left over from the prefab creation process?

Privacy & Terms