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;