Unity Performance Test Extension要求使用Unity 2018.1或更高版本。如果在UnityPerformanceBenchmark项目中运行示例性能测试,或者使用Unity Performance Test Extension时,请确保使用Unity 2018.1或更高版本。
使用命令行打开示例项目
UnityPerformanceBenchmark项目实现了IPrebuildSetup接口,这是Unity Test Runner的组成功能,可以用来实现Setup方法,该方法会在Unity Test Runner执行测试运行前自动调用。