- Home /
Visual studio for Mac doesn't identify Unity version in platform defines
Hi,
I am using Unity 2020.2.2 on Big Sur OSX and visual studio for Mac for an IOS project with AR foundation. My problem is that AR foundation has compilation platform defines for Unity version (e.g. #if UNITY_2020_2_OR_NEWER) and although I use Unity 2020.2.2 the code in these blocks is greyed out... Even defines like #if !UNITY_2019_1_OR_NEWER return true... I tried to remove the defines, but when I go back to unity it resets the AR foundation files...
I checked VS version and Unity tools for VS and everything is up to date.
Is there any solution to make VS get the correct unity version? Or at least to stop reseting the AR foundation files when I remove the defines?
Thanks
Answer by plKinems · Feb 02, 2021 at 10:08 AM
I just noticed that this happens only in AR Foundation scripts, in my scripts version defines work as expected. Super strange...