Skip to content

Commit

Permalink
Merge pull request #1893 from ousttrue/fix/add_if_unity_editor
Browse files Browse the repository at this point in the history
ビルドエラーを修正
  • Loading branch information
ousttrue authored Oct 27, 2022
2 parents 0462204 + 21425fd commit 66368f1
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@ async void OnGUI()
GUILayout.Label("ライセンスを変更する権利のある vrm-0.x モデルをロードしてください");
if (GUILayout.Button("migrate"))
{
#if UNITY_EDITOR
var path = UnityEditor.EditorUtility.OpenFilePanel("load vrm-0.x", null, "vrm");
#else
Debug.LogWarning("no OpenFilePanel for runtime");
string path = null;
#endif
if (string.IsNullOrEmpty(path))
{
return;
Expand Down

0 comments on commit 66368f1

Please sign in to comment.