ParallaxLayer

A parallax scrolling layer to be used with ParallaxBackground.

A ParallaxLayer must be the child of a ParallaxBackground node. Each ParallaxLayer can be set to move at different speeds relative to the camera movement or the ParallaxBackground.scrollOffset value. This node's children will be affected by its scroll offset. Note that any changes to this node's position and scale made after it enters the scene will be ignored.

Members

Aliases

BaseClasses
alias BaseClasses = AliasSeq!(typeof(_GODOT_base), typeof(_GODOT_base).BaseClasses)
Undocumented in source.

Functions

getMirroring
Vector2 getMirroring()
getMotionOffset
Vector2 getMotionOffset()
getMotionScale
Vector2 getMotionScale()
opAssign
ParallaxLayer opAssign(T n)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(ParallaxLayer other)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(typeof(null) n)
Undocumented in source. Be warned that the author may not have intended to support it.
setMirroring
void setMirroring(Vector2 mirror)
setMotionOffset
void setMotionOffset(Vector2 offset)
setMotionScale
void setMotionScale(Vector2 scale)

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Properties

motionMirroring
Vector2 motionMirroring [@property getter]
Vector2 motionMirroring [@property setter]

The ParallaxLayer's Texture mirroring. Useful for creating an infinite scrolling background. If an axis is set to 0 the Texture will not be mirrored. Default value: (0, 0).

motionOffset
Vector2 motionOffset [@property getter]
Vector2 motionOffset [@property setter]

The ParallaxLayer's offset relative to the parent ParallaxBackground's ParallaxBackground.scrollOffset.

motionScale
Vector2 motionScale [@property getter]
Vector2 motionScale [@property setter]

Multiplies the ParallaxLayer's motion. If an axis is set to 0 it will not scroll.

Static functions

_new
ParallaxLayer _new()
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

_classBindingInitialized
bool _classBindingInitialized;
Undocumented in source.

Structs

_classBinding
struct _classBinding
Undocumented in source.

Unions

__anonymous
union __anonymous
Undocumented in source.

Variables

_GODOT_internal_name
enum string _GODOT_internal_name;
Undocumented in source.

Mixed In Members

From mixin baseCasts

as
To as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
To as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
ToRef as()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(ToRef)
Undocumented in source.
opCast
void* opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
godot_object opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
bool opCast()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta