98teg / NativeDialogs

Native Dialogs is a plugin for Godot that allows you to interact with OS-specific dialogs, such as notifications, messages and file dialogs.
MIT License
156 stars 8 forks source link

Support for web builds #8

Closed Zettexe closed 1 year ago

Zettexe commented 1 year ago

Seems like this addon doesn't support web exports, not sure if its due to changes in Godot 4 or if it never supported web but it would be nice if it worked.

image

98teg commented 1 year ago

Sadly it is not possible. The web is pretty restrictive in how it allows you to interact with the OS, as a browser operates in its own sandbox. I recommend executing JavaScript directly using the JavaScript singleton.

Zettexe commented 1 year ago

Oh I didn't know about being able to run Javascript from Godot, that will work just fine for my purposes.