Implement preset path in file dialog.

This commit is contained in:
2022-12-16 17:50:26 +08:00
parent e6d94f248c
commit 5d17555744
4 changed files with 51 additions and 15 deletions

View File

@@ -21,6 +21,7 @@ namespace Cryville.Crtr.Browsing {
_dialog = GameObject.Instantiate(Resources.Load<GameObject>("Common/FileDialog")).GetComponent<FileDialog>();
_dialog.gameObject.SetActive(false);
_dialog.Filter = ResourceManager.GetSupportedFormats();
_dialog.PresetPaths = ResourceManager.GetPresetPaths();
_dialog.OnClose += OnAddDialogClosed;
}