File panel not displaying

Hi,

when I open the file browser in Unity, it works perfectly. But when I build the exe and run it, it doesn’t even display.

I use the file browser that UnityEditor provides:
UnityEditor.EditorUtility.OpenFilePanel(...);

What can I do? Is there a way to fix this? Thanks for your help…

Hello,

Maybe you should read the code you are writing:

UnityEditor.EditorUtility.OpenFilePanel();

It has the word Editor in it twice. As excepted from any game engine, a build does not contain the editor. So how can you expect functions using the editor to work?

Anything to do with the Editor will not compile (or throw compiler errors) when it’s built. It’s that simple.

Hope this helps,
Benproductions1

Unity has not implemented that functionality for runtime, but after searching for a long time I found this free asset to do it: