UniVRM/Assets/UniGLTF_Samples/GltfViewer/OpenFileDialog/OpenFileDialog.cs
2024-07-20 23:47:45 +09:00

16 lines
449 B
C#

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