Client selection Circle not functioning correctly.
In this lesson I have followed the instructions as closely as possible.
At 4:02 Nathan mentions that in future versions of Mirror those bools will not work correctly as they will automatically be turned on. I have version 40.0.9 of Mirror, Version 2020.3.10f1 of Unity.
As this was a problem for me, I used the alternative of ‘GameObject.SetActive()’.
However, this has brought up a different bug.
Selecting and deselecting works as normal for the hosting build.
The ‘client only’ build can create units fine. However when they are created they are automatically highlighted by the green circle in the host machine, and there is no green circle shown in the client machine.
Using the client to select and deselect will select a unit and move it, but it does not alter the above state for the green circle. Hosts are not able to actually select and move client units. Yet ALL client units will have their green circle set to active in the hosts game, and set to inactive in their game, regardless of what state they are in.
Would it be better to set the colour to transparent and back again in this case, rather than using Unity Events?
I did complete the lecture after this one before discovering the bug. I can post any code needed.