Skip to content

Commit 0b2b8f0

Browse files
committed
Merge pull request #99754 from kthang55/fix_follow_viewport
Update CanvasLayer 'Follow Viewport' documentation to match its behavior
2 parents 7417a07 + 5d111e8 commit 0b2b8f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/classes/CanvasLayer.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@
4545
The custom [Viewport] node assigned to the [CanvasLayer]. If [code]null[/code], uses the default viewport instead.
4646
</member>
4747
<member name="follow_viewport_enabled" type="bool" setter="set_follow_viewport" getter="is_following_viewport" default="false">
48-
If enabled, the [CanvasLayer] will use the viewport's transform, so it will move when camera moves instead of being anchored in a fixed position on the screen.
49-
Together with [member follow_viewport_scale] it can be used for a pseudo 3D effect.
48+
If enabled, the [CanvasLayer] stays in a fixed position on the screen. If disabled, the [CanvasLayer] maintains its position in world space.
49+
Together with [member follow_viewport_scale], this can be used for a pseudo-3D effect.
5050
</member>
5151
<member name="follow_viewport_scale" type="float" setter="set_follow_viewport_scale" getter="get_follow_viewport_scale" default="1.0">
5252
Scales the layer when using [member follow_viewport_enabled]. Layers moving into the foreground should have increasing scales, while layers moving into the background should have decreasing scales.

0 commit comments

Comments
 (0)