From 21425fd5cfeaa8209f3969030da997a80bc5cf69 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Thu, 27 Oct 2022 15:35:14 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=93=E3=83=AB=E3=83=89=E3=82=A8=E3=83=A9?= =?UTF-8?q?=E3=83=BC=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../VRM_0x_and_10_Samples/MigrateExporter/MigrateExporter.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Assets/VRM_0x_and_10_Samples/MigrateExporter/MigrateExporter.cs b/Assets/VRM_0x_and_10_Samples/MigrateExporter/MigrateExporter.cs index afcd987811..90491a140b 100644 --- a/Assets/VRM_0x_and_10_Samples/MigrateExporter/MigrateExporter.cs +++ b/Assets/VRM_0x_and_10_Samples/MigrateExporter/MigrateExporter.cs @@ -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;