html5 export: how to update canvas size manually

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Florian42

I am trying to customize the html5 template.

Quoting the docs on canvasResizePolicy = 1:

means Godot will resize the canvas on start, and when changing window size via engine functions.

But I could not find how to those “engine functions”

What I did find are functions that do would be helpful, like “updateSize”:

But I found no way of calling those as they are sealed away inside the Godot engine object and not callable from the outside.

Thanks for any pointers :slight_smile: