Skip to content

Commit

Permalink
Update tutorials/rendering/viewports.rst
Browse files Browse the repository at this point in the history
Co-authored-by: Raul Santos <raulsntos@gmail.com>
  • Loading branch information
ShawnHardern and raulsntos authored Aug 22, 2024
1 parent a65ad2a commit 32968e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tutorials/rendering/viewports.rst
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ different from the one specified in size, by calling:

.. code-tab:: csharp

subViewport.SetSize2DOverride(new Vector2I(width, height));
subViewport.SetSize2DOverrideStretch(true);
subViewport.Size2DOverride = new Vector2I(width, height); // Custom size for 2D.
subViewport.Size2DOverrideStretch = true; // Enable stretch for custom size.

For information on scaling and stretching with the Root Viewport visit the :ref:`Multiple Resolutions Tutorial <doc_multiple_resolutions>`

Expand Down

0 comments on commit 32968e4

Please sign in to comment.