文档

Unity Engine

Unity Engine

SliderInt

Constructors for the SliderInt.
阅读时间1 分钟最后更新于 1 个月前

Definition

SliderInt()

Constructors for the SliderInt.
public SliderInt()

SliderInt(int, int, SliderDirection, float)

Constructors for the SliderInt.
public SliderInt(int start, int end, SliderDirection direction = SliderDirection.Horizontal, float pageSize = 0)

Parameters

start

This is the low value of the slider.

end

This is the high value of the slider.

This is the slider direction, horizontal or vertical.

pageSize

This is the number of values to change when the slider is clicked.

SliderInt(string, int, int, SliderDirection, float)

Constructors for the SliderInt.
public SliderInt(string label, int start = 0, int end = 10, SliderDirection direction = SliderDirection.Horizontal, float pageSize = 0)

Parameters

label


start

This is the low value of the slider.

end

This is the high value of the slider.

This is the slider direction, horizontal or vertical.

pageSize

This is the number of values to change when the slider is clicked.