mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-11 13:04:17 -05:00
fix compile error on Unity 2018
This commit is contained in:
parent
de15a56e03
commit
25899b75f6
|
|
@ -3,6 +3,9 @@ using System.Linq;
|
|||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using UnityEditor;
|
||||
#if UNITY_2018_1_OR_NEWER
|
||||
using UnityEditor.Build.Reporting;
|
||||
#endif
|
||||
using UnityEngine;
|
||||
|
||||
|
||||
|
|
@ -77,10 +80,11 @@ namespace VRM
|
|||
BuildTarget.StandaloneWindows,
|
||||
BuildOptions.None
|
||||
);
|
||||
if (!string.IsNullOrEmpty(build))
|
||||
{
|
||||
return;
|
||||
}
|
||||
#if UNITY_2018_1_OR_NEWER
|
||||
var iSuccess = build.summary.result != BuildResult.Succeeded;
|
||||
#else
|
||||
var iSuccess = !string.IsNullOrEmpty(build);
|
||||
#endif
|
||||
|
||||
var path = GetPath(PREFIX);
|
||||
if (File.Exists(path))
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user