<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"
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"
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>