您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
22 行
690 B
22 行
690 B
#if UNITY_EDITOR
|
|
using System;
|
|
using UnityEditor;
|
|
using UnityEditor.Build;
|
|
using UnityEditor.Build.Reporting;
|
|
using UnityEngine;
|
|
namespace Unity.MegaCity.Utils{
|
|
/// <summary>
|
|
/// Validate that Megacity is built targeting the correct architecture and platform.
|
|
/// </summary>
|
|
class PreventX86BuildProcessor : IPreprocessBuildWithReport
|
|
{
|
|
public int callbackOrder => 0;
|
|
|
|
public void OnPreprocessBuild(BuildReport report)
|
|
{
|
|
if(report.summary.platform == BuildTarget.StandaloneWindows)
|
|
Debug.LogError("MegaCity should be built in x86_64 (Build Settings / Architecture)");
|
|
}
|
|
}
|
|
}
|
|
#endif
|