Component:ScrollRect

From Resonite Wiki
Revision as of 21:39, 3 March 2024 by PJB (talk | contribs) (Automated: update Fields, Categories)


This article or section is a Stub. You can help the Resonite Wiki by expanding it.


Component image 
ScrollRect component as seen in the Scene Inspector


Intoduction

ScrollRect is a component for making a child with a RectTransform scroll.

ScrollRect will not do any clipping on its own. If it is a child of an object with a Mask component, it effectively becomes a window into the scrolled content.

Usage

Fields
Name Type Description
persistent Bool Determines whether or not this item will be saved to the server.
UpdateOrder Int Controls the order in which this component is updated.
Enabled Bool Controls whether or not this component is enabled.
NormalizedPosition Float2 The scroll position between (0,0) and (1,1) with (0,0) being the lower left corner.
HorizontalAlign LayoutHorizontalAlignment
VerticalAlign LayoutVerticalAlignment
ViewportOverride RectTransform
__legacyContent RectTransform

Behavior

Examples

Related Components