浏览代码

only change cs files

/develop-gpu-test
Chris Elion 5 年前
当前提交
2cab63ef
共有 2 个文件被更改,包括 10 次插入8 次删除
  1. 4
      UnitySDK/Assets/ML-Agents/Editor/Tests/MLAgentsEditModeTest.cs
  2. 14
      UnitySDK/Assets/ML-Agents/Editor/Tests/StandaloneBuildTest.cs

4
UnitySDK/Assets/ML-Agents/Editor/Tests/MLAgentsEditModeTest.cs


return null;
}
public CompressionType GetCompressionType()
public Sensor.CompressionType GetCompressionType()
return CompressionType.None;
return Sensor.CompressionType.None;
}
public string GetName()

14
UnitySDK/Assets/ML-Agents/Editor/Tests/StandaloneBuildTest.cs


using System;
using UnityEditor;
using UnityEngine;
using UnityEditor.Build.Reporting;
namespace MLAgents
{

{
string[] scenes = { "Assets/ML-Agents/Examples/3DBall/Scenes/3DBall.unity" };
var error = BuildPipeline.BuildPlayer(scenes, "testPlayer", BuildTarget.StandaloneOSX, BuildOptions.None);
if (string.IsNullOrEmpty(error))
var report = BuildPipeline.BuildPlayer(scenes, "testPlayer", BuildTarget.StandaloneOSX, BuildOptions.None);
// if (string.IsNullOrEmpty(error))
if(report.summary.result == BuildResult.Succeeded)
Console.Error.WriteLine(error);
//Console.Error.WriteLine(error);
Debug.Log(error);
//Debug.Log(error);
}
}
正在加载...
取消
保存