浏览代码

await for setup before run

/pyrception-integration
Mohsen Kamalzadeh 3 年前
当前提交
77554903
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 4
      com.unity.perception/Editor/Visualizer/VisualizerInstaller.cs

4
com.unity.perception/Editor/Visualizer/VisualizerInstaller.cs


/// <summary>
/// Install visualizer (Uses the python3.7 installation that comes with python for unity)
/// </summary>
static async void SetupVisualizer()
static async Task SetupVisualizer()
{
var project = Application.dataPath;

{
if (!CheckIfVisualizerInstalled(project))
{
SetupVisualizer();
await SetupVisualizer();
}
var (pythonPid, port, visualizerPid) = ReadEntry(project);

正在加载...
取消
保存