UIVerticalScrollView
Scrollable container that clips and scrolls its children vertically.
Create in the Editor
- Ensure there is a
UIControllerin the scene. - Create a GameObject and add
UIRect. - Add the
UIVerticalScrollViewcomponent.
How to Use
- Get the component with
myObject.findComponent(UIVerticalScrollView.class). - Read and write the component properties to control behavior.
- Test input or layout in Play mode.
Java Example
SpatialObject myObject = /* your object */;
UIVerticalScrollView comp = myObject.findComponent(UIVerticalScrollView.class);
if (comp != null) {
// set the scroll value:
comp.scroll = 1;
// read the scroll value:
int scrollValue = comp.scroll;
}