mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-04-26 16:47:06 -05:00
16 lines
449 B
C#
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
|
|
}
|
|
}
|
|
}
|