Răsfoiți Sursa

Mention Canvas Resize Policy in Exporting for the Web

Hugo Locurcio 2 luni în urmă
părinte
comite
bd6c45b173
1 a modificat fișierele cu 8 adăugiri și 1 ștergeri
  1. 8 1
      tutorials/export/exporting_for_web.rst

+ 8 - 1
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
 *Stop scene* and *Play edited Scene* buttons in the editor to quickly open the
 game in the default browser for testing.
 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 <doc_importing_images>` make sure that
 If you plan to use :ref:`VRAM compression <doc_importing_images>` make sure that
 **VRAM Texture Compression** is enabled for the targeted platforms (enabling
 **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
 HTML page. This allows to, for example, load webfonts and third-party
 JavaScript APIs, include CSS, or run JavaScript code.
 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 <doc_multiple_resolutions>`.
+
 .. important:: Each project must generate their own HTML file. On export,
 .. important:: Each project must generate their own HTML file. On export,
                several text placeholders are replaced in the generated HTML
                several text placeholders are replaced in the generated HTML
                file specifically for the given export options. Any direct
                file specifically for the given export options. Any direct