forked from Unity-Technologies/EntityComponentSystemSamples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSetup.cs
More file actions
23 lines (22 loc) · 607 Bytes
/
Copy pathSetup.cs
File metadata and controls
23 lines (22 loc) · 607 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
using System;
using System.IO;
using System.Runtime.InteropServices;
using UnityEngine;
using Debug = UnityEngine.Debug;
using UnityEditor;
using System.Diagnostics;
using UnityEditor.Build.Content;
#if UNITY_2020_2_OR_NEWER && (UNITY_EDITOR_OSX || UNITY_STANDALONE_OSX)
using UnityEditor.OSXStandalone;
#endif
[InitializeOnLoad]
public class SetupProject
{
static SetupProject()
{
#if UNITY_2020_2_OR_NEWER && UNITY_EDITOR_OSX
if (EditorUserBuildSettings.activeBuildTarget == BuildTarget.StandaloneOSX)
UserBuildSettings.architecture = MacOSArchitecture.x64;
#endif
}
}