Преглед изворни кода

Mention Canvas Resize Policy in Exporting for the Web

Hugo Locurcio пре 2 месеци
родитељ
комит
bd6c45b173
1 измењених фајлова са 8 додато и 1 уклоњено
  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
 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
 **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 <doc_multiple_resolutions>`.
+
 .. 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