- Home /
error CS0117: `UnityEditor.PlayerSettings' does not contain a definition for `Metro'
I have just upgraded my project to unity 5 from 4 and i am getting this error, does anyone have any idea why this is happening, and how i can fix it?
Assets/Heureka/AssetHunter/Editor/AssetBuildReport.cs(107,52): error CS0117: UnityEditor.PlayerSettings' does not contain a definition for
Metro'
Answer by zee_ola05 · Mar 13, 2015 at 08:45 PM
In Unity 5 Release Notes, it says: "'Metro' keyword was replaced to 'WSA' in most APIs, for ex., BuildTarget.MetroPlayer became BuildTarget.WSAPlayer, PlayerSettings.Metro became PlayerSettings.WSA. Defines in scripts like UNITY_METRO, UNITY_METRO_8_0, UNITY_METRO_8_1 are still there, but along them there are defines UNITY_WSA, UNITY_WSA_8_0, UNITY_WSA_8_1."
Try that.
Such a quick response, thank you for the reply. Replacing $$anonymous$$etro with WSA worked perfectly. How did you find this information, I thought I trolled the entire interweb.
Unity 5 Release Notes is huge. You might have missed it. ;) I'm glad it works for you.