editor, sample

This commit is contained in:
ousttrue
2025-02-05 13:55:40 +09:00
parent 94e242b31f
commit 7732955ca0
92 changed files with 321 additions and 217 deletions

View File

@@ -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
}