Unity windows打开文件选择对话框

Unity 中是无法直接使用 C# 提供的 OpenFileDialog 与 FolderBrowserDialog 类来打开文件夹对话框。
这些方式在Untiy 编辑器下可能使用成功,但是一旦打包成 应用程序,就无法运行了。

可以使用外部插件 StandaloneFileBrowser 来处理
git地址:https://github.com/gkngkc/UnityStandaloneFileBrowser

插件有详细的例子!

猜你喜欢

转载自blog.csdn.net/qq_27461747/article/details/108031147