From bd6c45b173ed07c90003e3144743ee5a58becbed Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Wed, 21 May 2025 00:13:40 +0200 Subject: [PATCH] Mention Canvas Resize Policy in Exporting for the Web --- tutorials/export/exporting_for_web.rst | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tutorials/export/exporting_for_web.rst b/tutorials/export/exporting_for_web.rst index 924f73244..42c1d0a9f 100644 --- a/tutorials/export/exporting_for_web.rst +++ b/tutorials/export/exporting_for_web.rst @@ -136,7 +136,7 @@ If a runnable web export template is available, a button appears between the *Stop scene* and *Play edited Scene* buttons in the editor to quickly open the game in the default browser for testing. -If your project uses GDExtension **Extension Support** needs to be enabled. +If your project uses GDExtension, **Extension Support** needs to be enabled. If you plan to use :ref:`VRAM compression ` make sure that **VRAM Texture Compression** is enabled for the targeted platforms (enabling @@ -150,6 +150,13 @@ the default HTML page. See :ref:`doc_customizing_html5_shell`. HTML page. This allows to, for example, load webfonts and third-party JavaScript APIs, include CSS, or run JavaScript code. +The window size will automatically match the browser window size by default. +If you want to use a fixed size instead regardless of the browser window size, +change **Canvas Resize Policy** to **None**. This allows controlling the window +size with custom JavaScript code in the HTML shell. You can also set it to +**Project** to make it behave closer to a native export, according to the +:ref:`project settings `. + .. important:: Each project must generate their own HTML file. On export, several text placeholders are replaced in the generated HTML file specifically for the given export options. Any direct