Skip to content

Commit 931ae52

Browse files
authored
Merge pull request #10954 from Calinou/exporting-for-web-canvas-resize-policy
Mention Canvas Resize Policy in Exporting for the Web
2 parents 77d6ca0 + bd6c45b commit 931ae52

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tutorials/export/exporting_for_web.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ If a runnable web export template is available, a button appears between the
136136
*Stop scene* and *Play edited Scene* buttons in the editor to quickly open the
137137
game in the default browser for testing.
138138

139-
If your project uses GDExtension **Extension Support** needs to be enabled.
139+
If your project uses GDExtension, **Extension Support** needs to be enabled.
140140

141141
If you plan to use :ref:`VRAM compression <doc_importing_images>` make sure that
142142
**VRAM Texture Compression** is enabled for the targeted platforms (enabling
@@ -150,6 +150,13 @@ the default HTML page. See :ref:`doc_customizing_html5_shell`.
150150
HTML page. This allows to, for example, load webfonts and third-party
151151
JavaScript APIs, include CSS, or run JavaScript code.
152152

153+
The window size will automatically match the browser window size by default.
154+
If you want to use a fixed size instead regardless of the browser window size,
155+
change **Canvas Resize Policy** to **None**. This allows controlling the window
156+
size with custom JavaScript code in the HTML shell. You can also set it to
157+
**Project** to make it behave closer to a native export, according to the
158+
:ref:`project settings <doc_multiple_resolutions>`.
159+
153160
.. important:: Each project must generate their own HTML file. On export,
154161
several text placeholders are replaced in the generated HTML
155162
file specifically for the given export options. Any direct

0 commit comments

Comments
 (0)