Hi,
I googled and found this, but is there a way to do it using blueprint?
And at the end of above link, i noticed this:
Funny that I only found this now. This does not work in a packaged build, so it’s effectively useless for any actual applications.
so how to open a file dialog in game?
Any idea is appreciated.
If that doesn’t work in a packaged build you are going to have to build one yourself, and that is by no means an easy task in blueprints.
I built it but found a error
can not open “Winframe.h”
i will try another way, thank u!
the IDesktopPlatform api is editor only, so anything built on it dies the moment you package, which is why that link doesnt help you in game. what you want in game is an os dialog opened from a runtime module with the game window as parent, async so the game keeps running, with the picked path coming back on the game thread.
Async Runtime File Dialog, a native file picker plugin for Unreal Engine 5, has Open File Picker, Save File Picker and Open Directory Picker as one node each with the result as a delegate, packaged win64, 5.0-5.8: Async Runtime File Dialog — Native OS File Picker for Blueprints | Fab