NoveltyML reference > Objects > ScrollCanvas


A scrolling canvas object.
ScrollCanvas works like a SmartCanvas, but enables scrolling.

See also: <SmartCanvas>

ScrollCanvas attributes

Attribute Description
dynamic Enable/disable dynamic (smart) rendering
flip Flip image vertically
mirror Flip image horizontally
relative Relative scrolling
scroll-position Scrolling position

Additionally, this asset type inherits all object attributes.

dynamic [bool]

Set this to false to disable smart rendering.
Default value: true

dynamic = "false"

flip [bool]

Set to true to vertically reverse texture.

flip = "true"

mirror [bool]

Set to true to horizontally reverse texture.

mirror = "true"

relative [bool]

When set, scrolling-position should be a value between 0 and 1. Actual coordinates are then based on the canvas' content.
Default value: true.

relative = "true"

scroll-position [Vector2]

Default scrolling position coordinates.

scroll-position = "1,1"

Valid child tags

Child tags Description
<Traits> Object traits list
<Meta> Meta information
Objects... Other objects


<ScrollCanvas name="My canvas" size="300,300" >
	<Image texture="My texture" />

Back to top