diff options
author | Yuri Sizov <11782833+YuriSizov@users.noreply.github.com> | 2023-05-18 19:01:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-18 19:01:43 +0200 |
commit | e9ba45e12ede5c9b518edcf13e5a682301ad83bc (patch) | |
tree | cd417d2bdcc8aa53e6557594887461f0d0f13735 /doc/classes | |
parent | ca8bbf24aecd4e8dc1be36d5e6b82eb3d7de2dd4 (diff) | |
parent | 4e06f611b8337ca6503b48ee06efbe91b3130523 (diff) | |
download | redot-engine-e9ba45e12ede5c9b518edcf13e5a682301ad83bc.tar.gz |
Merge pull request #77174 from FranckRJ/improve-parallaxlayer-mirroring-doc
Replace "mirror" by "repeat" in doc of `ParallaxLayer::motion_mirroring`
Diffstat (limited to 'doc/classes')
-rw-r--r-- | doc/classes/ParallaxLayer.xml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/classes/ParallaxLayer.xml b/doc/classes/ParallaxLayer.xml index d0fdaf65e4..54301f1577 100644 --- a/doc/classes/ParallaxLayer.xml +++ b/doc/classes/ParallaxLayer.xml @@ -12,8 +12,9 @@ </tutorials> <members> <member name="motion_mirroring" type="Vector2" setter="set_mirroring" getter="get_mirroring" default="Vector2(0, 0)"> - The ParallaxLayer's [Texture2D] mirroring. Useful for creating an infinite scrolling background. If an axis is set to [code]0[/code], the [Texture2D] will not be mirrored. - If the length of the viewport axis is bigger than twice the mirrored axis size, it will not repeat infinitely, as the parallax layer only draws 2 instances of the texture at any one time. + The ParallaxLayer's [Texture2D] repeating. Useful for creating an infinite scrolling background. If an axis is set to [code]0[/code], the [Texture2D] will not be repeated. + If the length of the viewport axis is bigger than twice the repeated axis size, it will not repeat infinitely, as the parallax layer only draws 2 instances of the texture at any given time. + [b]Note:[/b] Despite its name, the texture will not be mirrored, it will simply be repeated. </member> <member name="motion_offset" type="Vector2" setter="set_motion_offset" getter="get_motion_offset" default="Vector2(0, 0)"> The ParallaxLayer's offset relative to the parent ParallaxBackground's [member ParallaxBackground.scroll_offset]. |