Skip to content

OGScrollView

Jeppe Zapp edited this page Feb 13, 2014 · 3 revisions

Scroll views hold other widget types

Variables

Variable Type
size Vector2 Dimensions of the scroll view (this doesn't depend on the Transform component)
position Vector2 The position with which the child widgets are offset
padding Vector2 Inner padding
elasticity float When dragging to scroll content, how "elastic" should the snapback be?
lockAxis ScrollDirection Locked scroll direction
infiniteScrolling boolean Enabled a rather hacky implementation of infinite scrolling
touchControl boolean Enables touch features

Example

I'd recommend setting up scroll views in the inspector rather than through scripting

Clone this wiki locally