浏览代码

wrapped editor only code in the GFX tests script

/main
Andre McGrail 3 年前
当前提交
f408cb15
共有 1 个文件被更改,包括 5 次插入3 次删除
  1. 8
      Assets/Scripts/UnityGFXTests/Runtime/BoatAttackGraphicsTests.cs

8
Assets/Scripts/UnityGFXTests/Runtime/BoatAttackGraphicsTests.cs


{
private const string DefineKey = "BoatAttack_Tests_ScriptingDefines";
private static float _oldTimeScale = 1.0f; // give default of 1 just in case
#if UNITY_EDITOR
public void Setup()
{
// save current scription defines and set both STATIC_EVERYTHING and LWRP_DEBUG_STATIC_POSTFX

// run base graphics test setup
SetupGraphicsTestCases.Setup();
}
#endif
[UnityTest, Category("BoatAttack")]
[UseGraphicsTestCases]
public IEnumerator Run(GraphicsTestCase testCase)

{
ResultsUtility.ExtractImagesFromTestProperties(TestContext.CurrentContext.Test);
}
#endif
public void Cleanup()
{

PlayerSettings.SetScriptingDefineSymbolsForGroup(EditorUserBuildSettings.selectedBuildTargetGroup, EditorPrefs.GetString(DefineKey));
EditorPrefs.DeleteKey(DefineKey);
}
#endif
}
正在加载...
取消
保存