Class Slider
GUI 슬라이더를 표시하는 클래스
네임스페이스: Game.Scripts.UI
어셈블리: Assembly-CSharp.dll
Syntax
[MoonSharpUserData]
public class Slider : Control
생성자
Slider(Rect)
GUI 슬라이더를 표시하는 클래스
선언
public Slider(Rect rect)
매개 변수(인자)
타입 | 이름 | 설명 |
---|---|---|
Rect | rect |
Slider(RectTransform, Control)
GUI 슬라이더를 표시하는 클래스
선언
public Slider(RectTransform rt, Control original)
매개 변수(인자)
타입 | 이름 | 설명 |
---|---|---|
UnityEngine.RectTransform | rt | |
Control | original |
프로퍼티
backgroundBottom
배경 하단 빈칸 길이
선언
public float backgroundBottom { get; set; }
프로퍼티 값
타입 | 설명 |
---|---|
float |
backgroundImage
배경 이미지 경로
선언
public string backgroundImage { set; }
프로퍼티 값
타입 | 설명 |
---|---|
string |
backgroundTop
배경 상단 빈칸 길이
선언
public float backgroundTop { get; set; }
프로퍼티 값
타입 | 설명 |
---|---|
float |
direction
슬라이더 방향 0 : left to right 1 : right to left 2 : bottom to top 3 : top to bottom
선언
public int direction { get; set; }
프로퍼티 값
타입 | 설명 |
---|---|
int |
fillImage
채움 이미지 경로
선언
public string fillImage { set; }
프로퍼티 값
타입 | 설명 |
---|---|
string |
handleActive
핸들 표시 여부
선언
public bool handleActive { get; set; }
프로퍼티 값
타입 | 설명 |
---|---|
bool |
handleImage
핸들 이미지 경로
선언
public string handleImage { set; }
프로퍼티 값
타입 | 설명 |
---|---|
string |
handleWidth
핸들 넓이
선언
public float handleWidth { get; set; }
프로퍼티 값
타입 | 설명 |
---|---|
float |
maxAmount
최대값
선언
public float maxAmount { get; set; }
프로퍼티 값
타입 | 설명 |
---|---|
float |
minAmount
최소값
선언
public float minAmount { get; set; }
프로퍼티 값
타입 | 설명 |
---|---|
float |
onValueChanged
슬라이더 직접 조작시
선언
public EventPublisher onValueChanged { get; }
프로퍼티 값
타입 | 설명 |
---|---|
EventPublisher |
value
Slider의 값
선언
public float value { get; set; }
프로퍼티 값
타입 | 설명 |
---|---|
float |
함수
__call(Slider, Dictionary<string, object>)
GUI 슬라이더를 표시하는 클래스
선언
[MoonSharpUserDataMetamethod("__call")]
public static Slider __call(Slider self, Dictionary<string, object> style)
매개 변수(인자)
타입 | 이름 | 설명 |
---|---|---|
Slider | self | |
System.Collections.Generic.Dictionary<TKey, TValue><string, object> | style |
반환
타입 | 설명 |
---|---|
Slider |
New(Rect)
Slider 생성하기
선언
public static Slider New(Rect rect = null)
매개 변수(인자)
타입 | 이름 | 설명 |
---|---|---|
Rect | rect | Rect 범위 |
반환
타입 | 설명 |
---|---|
Slider |