UniVRM/Assets/UniGLTF_Samples/GltfViewer/OpenFileDialog/OpenFileDialog.cs
2025-02-05 13:56:13 +09:00

19 lines
508 B
C#

using UnityEngine;
namespace UniGLTF.GltfViewer
{
public static class OpenFileDialog
{
public static PathObject Show(string title, params string[] extensions)
{
Debug.Log(typeof(UniGLTFLogger));
#if UNITY_STANDALONE_WIN
return PathObject.FromFullPath(FileDialogForWindows.FileDialog(title, extensions));
#else
UniGLTFLogger.Warning("Non-Windows runtime file dialogs are not yet implemented.");
return default;
#endif
}
}
}