Skip to content

Extended from BaseObject Parallax

This class is used to create inmersive backgrounds

Properties

Vector2 CanvasSize

Defines the image zoom, if the value is 1X, 1Y it will see the whole image as expected, if you set it to 2X, 2Y you only will be able see half of the image

Vector2 Offset

Defines the scroll position of the parallax object

boolean Track

Defines if Update method should be called automatically

boolean LockToCamera

Locks the Parallax object to the camera position

Methods

void SetTexture(texture: string)

Sets the tile texture

void UpdateTiles()

Updates the parallax properties (position, canvasSize, etc.), its automatically called when Track is enabled

Events

There is no events for this class