Version: 2017.3

ScrollRect.SetNormalizedPosition

Switch to Manual
protected void SetNormalizedPosition (float value, int axis);

Parameters

value The position to set, between 0 and 1.
axis The axis to set: 0 for horizontal, 1 for vertical.

Description

Set the horizontal or vertical scroll position as a value between 0 and 1, with 0 being at the left or at the bottom.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961