Skip to content

Commit

Permalink
Merge pull request #33945 from Calinou/doc-viewportcontainer-stretch
Browse files Browse the repository at this point in the history
Document the `ViewportContainer.stretch_shrink` property
  • Loading branch information
akien-mga authored Nov 27, 2019
2 parents 1af9701 + 77d95e3 commit 9e3fb2b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/classes/ViewportContainer.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
If [code]true[/code], the viewport will be scaled to the control's size.
</member>
<member name="stretch_shrink" type="int" setter="set_stretch_shrink" getter="get_stretch_shrink" default="1">
Divides the viewport's effective resolution by this value while preserving its scale. This can be used to speed up rendering.
For example, a 1280×720 viewport with [member stretch_shrink] set to [code]2[/code] will be rendered at 640×360 while occupying the same size in the container.
[b]Note:[/b] [member stretch] must be [code]true[/code] for this property to work.
</member>
</members>
<constants>
Expand Down

0 comments on commit 9e3fb2b

Please sign in to comment.