Improve the description of follow_viewport_enabled
(cherry picked from commit 229e764290
)
This commit is contained in:
parent
7dfcd9d80d
commit
96f8177b42
|
@ -36,7 +36,8 @@
|
|||
The custom [Viewport] node assigned to the [CanvasLayer]. If [code]null[/code], uses the default viewport instead.
|
||||
</member>
|
||||
<member name="follow_viewport_enable" type="bool" setter="set_follow_viewport" getter="is_following_viewport" default="false">
|
||||
Sets the layer to follow the viewport in order to simulate a pseudo 3D effect.
|
||||
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.
|
||||
Together with [member follow_viewport_scale] it 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">
|
||||
Scales the layer when using [member follow_viewport_enable]. Layers moving into the foreground should have increasing scales, while layers moving into the background should have decreasing scales.
|
||||
|
|
Loading…
Reference in New Issue