Select and Deselect error

I’ve been following the course and have encountered an issue with unit selection. The circle will not show up if I turn it off in the prefab and will not disappear if I leave it on. I tried enabling and disabling the Sprite Renderer and the GameObject itself in the OnSelected Unit script, but then I saw this error in the console. I have the exact same code as the video. Is this just a problem with my version of Mirror?
화면 캡처 2022-10-17 120320

I decided to download the project from the repository to see if it was something I had done incorrectly in my project. It still came up. Updating the project to a newer version of the editor seems to cause this issue.
Simply changing the editor version to the same one used in the video makes everything work fine.

1 Like

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

Privacy & Terms