Hey im looking for reacting with my web game for resize event.
I want to use Javascript.eval to create listener like that, but on every call i want to execute gdscript func, is there any possibility to do that?
See here: https://docs.godotengine.org/en/stable/classes/class_javascript.html
And here: https://docs.godotengine.org/en/stable/tutorials/export/exporting_for_web.html#calling-javascript-from-script
I found option to create.callback inside gdscript
Does anybody got comeplete example with js and gdscript code that will show how it works?
after some times i find out that i needed to get the interface of window than add reference to callback