Skip to content

Commit

Permalink
Ugly workaround for file dialogs not working in Unity 2023.2
Browse files Browse the repository at this point in the history
  • Loading branch information
tjm committed Mar 19, 2024
1 parent 6c9602c commit 3cbb39f
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,14 @@
using System.IO;
using System.Windows.Forms;
using System.Runtime.InteropServices;
#if UNITY_2023_2
using VistaOpenFileDialog = System.Windows.Forms.OpenFileDialog;
using VistaFolderBrowserDialog = System.Windows.Forms.FolderBrowserDialog;
using VistaSaveFileDialog = System.Windows.Forms.SaveFileDialog;
#else
using Ookii.Dialogs;

#endif

namespace SFB {
// For fullscreen support
// - WindowWrapper class and GetActiveWindow() are required for modal file dialog.
Expand Down

0 comments on commit 3cbb39f

Please sign in to comment.