mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-09-14 23:10:46 -05:00
editor, sample
This commit is contained in:
@@ -1,13 +1,16 @@
|
||||
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
|
||||
UnityEngine.Debug.LogWarning("Non-Windows runtime file dialogs are not yet implemented.");
|
||||
UniGLTFLogger.Warning("Non-Windows runtime file dialogs are not yet implemented.");
|
||||
return default;
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user