Skip to content

Commit

Permalink
Update BuildOSX.cs (#94)
Browse files Browse the repository at this point in the history
Fix for U2022
  • Loading branch information
nickfourtimes committed Jan 12, 2023
1 parent 18fd7c1 commit 4b82f76
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Editor/Build/Platform/BuildOSX.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,12 @@ private void SetBuildOutputType(string key)

private void SetMacOSArchitecture(string key)
{
#if UNITY_2020_2_OR_NEWER && UNITY_STANDALONE_OSX
#if UNITY_STANDALONE_OSX
#if UNITY_2022_1_OR_NEWER
UnityEditor.OSXStandalone.UserBuildSettings.architecture = (UnityEditor.Build.OSArchitecture)EnumValueFromKey<MacOSArchitecture>(key);
#elif UNITY_2020_2_OR_NEWER
UnityEditor.OSXStandalone.UserBuildSettings.architecture = (UnityEditor.OSXStandalone.MacOSArchitecture)EnumValueFromKey<MacOSArchitecture>(key);
#endif
#endif
}
}
Expand Down

0 comments on commit 4b82f76

Please sign in to comment.