- Home /
Error CS1061 on Mac
I'm developing a game with one other person at the moment. The game project runs fine on their PC, but on my Mac, I can no longer do so as three complier errors continually remain.
All three of these errors are: error CS1061: 'GameObject' does not contain a definition for 'TryGetComponent' and no accessible extension method 'TryGetComponent' accepting a first argument of type 'GameObject' could be found (are you missing a using directive or an assembly reference?)
I have two internal drives. One for boot up and one for storage. Unity was saving to my boot up disk without me knowing for a while, so I moved it to the storage disk and the error started. Since then I have deleted, fully uninstalled, fully reinstalled and relocated Unity, Unity Hub, and my project in every different way I can think numerous times. I'd like to know what the solution is so I can finally get back to working on my game
thank you
Your answer
