FREE TRIAL

|

☀
☾

Scroller.Scroll

Scroll(float)

Scrolls content by the provided delta along the UIBlock's AutoLayout.Axis

Remarks

If this.ActiveAndEnabled == false, this call won't do anything. May require a call to CalculateLayout() if attempting to scroll immediately after child content has been modified.

Declaration
public void Scroll(float delta)
Parameters
Type Name Description
float delta

Value is in UIBlock.transform local space

Exceptions
Type Condition
System.InvalidOperationException

if UIBlock.AutoLayout.Axis == Axis.None

☀
☾
In This Article
Legal EmailContact Github
Copyright © 2022 Supernova Technologies, LLC