NoveltyML reference > Objects > ScrollCanvas

<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

Example:
dynamic = "false"


flip [bool]

Set to true to vertically reverse texture.

Example:
flip = "true"


mirror [bool]

Set to true to horizontally reverse texture.

Example:
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.

Example:
relative = "true"


scroll-position [Vector2]

Default scrolling position coordinates.

Example:
scroll-position = "1,1"


Valid child tags

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


Example

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

Back to top