Merge pull request #103111 from rt9391/rt9391

Fix CanvasLayer 'Follow Viewport' documentation to match its behavior
This commit is contained in:
Thaddeus Crews 2025-04-22 18:25:49 -05:00
commit 19b9c035bd
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC

View file

@ -45,7 +45,7 @@
The custom [Viewport] node assigned to the [CanvasLayer]. If [code]null[/code], uses the default viewport instead.
</member>
<member name="follow_viewport_enabled" type="bool" setter="set_follow_viewport" getter="is_following_viewport" default="false">
If enabled, the [CanvasLayer] stays in a fixed position on the screen. If disabled, the [CanvasLayer] maintains its position in world space.
If enabled, the [CanvasLayer] maintains its position in world space. If disabled, the [CanvasLayer] stays in a fixed position on the screen.
Together with [member follow_viewport_scale], this can be used for a pseudo-3D effect.
</member>
<member name="follow_viewport_scale" type="float" setter="set_follow_viewport_scale" getter="get_follow_viewport_scale" default="1.0">