您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
19 行
750 B
19 行
750 B
#if UNITY_CLOUD_BUILD
|
|
using UnityEditor;
|
|
|
|
public class DisableBurstFromMenu
|
|
{
|
|
/// This method is needed to disable Burst compilation on windows for our cloudbuild tests.
|
|
/// Barracuda 0.4.0-preview depends on a version of Burst (1.1.1) which does not allow
|
|
/// users to disable burst compilation on a per platform basis. The burst version 1.3.0-preview-1
|
|
/// allows for cross compilation, but is not released yet.
|
|
///
|
|
/// We will be able to remove this when
|
|
/// 1. Barracuda updates burst 1.3.0-preview-1 or
|
|
/// 2. We update our edior version for our tests to 2019.1+
|
|
public static void DisableBurstCompilation()
|
|
{
|
|
EditorApplication.ExecuteMenuItem("Jobs/Burst/Enable Compilation");
|
|
}
|
|
}
|
|
#endif
|