Class ScrollPanel
스크롤되는 패널을 표시하는 클래스
네임스페이스: Game.Scripts.UI
어셈블리: Assembly-CSharp.dll
Syntax
[MoonSharpUserData]
public sealed class ScrollPanel : Control
생성자
ScrollPanel(Rect)
스크롤되는 패널을 표시하는 클래스
선언
public ScrollPanel(Rect rect = null)
매개 변수(인자)
타입 | 이름 | 설명 |
---|---|---|
Rect | rect |
ScrollPanel(RectTransform, ScrollPanel)
스크롤되는 패널을 표시하는 클래스
선언
public ScrollPanel(RectTransform rt, ScrollPanel original)
매개 변수(인자)
타입 | 이름 | 설명 |
---|---|---|
UnityEngine.RectTransform | rt | |
ScrollPanel | original |
프로퍼티
color
패널의 배경색상
선언
public Color color { get; set; }
프로퍼티 값
타입 | 설명 |
---|---|
Color |
content
스크롤 대상의 컨트롤
선언
public Control content { get; set; }
프로퍼티 값
타입 | 설명 |
---|---|
Control |
decelerationRate
마우스로 끌었을때 관성
선언
public float decelerationRate { get; set; }
프로퍼티 값
타입 | 설명 |
---|---|
float |
horizontal
가로 스크롤 사용여부 설정
선언
public bool horizontal { get; set; }
프로퍼티 값
타입 | 설명 |
---|---|
bool |
horizontalScrollbar
가로 스크롤바를 리턴 받습니다.
선언
public Scrollbar horizontalScrollbar { get; }
프로퍼티 값
타입 | 설명 |
---|---|
Scrollbar |
movementType
Unrestricted 0 Elastic 1 Clamped 2
선언
public int movementType { get; set; }
프로퍼티 값
타입 | 설명 |
---|---|
int |
scrollSensitivity
마우스 휠 민감도
선언
public float scrollSensitivity { get; set; }
프로퍼티 값
타입 | 설명 |
---|---|
float |
showHorizontalScrollbar
가로 스크롤바 표시여부 설정
선언
public bool showHorizontalScrollbar { get; set; }
프로퍼티 값
타입 | 설명 |
---|---|
bool |
showVerticalScrollbar
세로 스크롤바 표시여부 설정
선언
public bool showVerticalScrollbar { get; set; }
프로퍼티 값
타입 | 설명 |
---|---|
bool |
vertical
세로 스크롤 사용여부 설정
선언
public bool vertical { get; set; }
프로퍼티 값
타입 | 설명 |
---|---|
bool |
verticalScrollbar
세로 스크롤바를 리턴 받습니다.
선언
public Scrollbar verticalScrollbar { get; }
프로퍼티 값
타입 | 설명 |
---|---|
Scrollbar |
함수
__call(ScrollPanel, Dictionary<string, object>)
스크롤되는 패널을 표시하는 클래스
선언
[MoonSharpUserDataMetamethod("__call")]
public static ScrollPanel __call(ScrollPanel self, Dictionary<string, object> style)
매개 변수(인자)
타입 | 이름 | 설명 |
---|---|---|
ScrollPanel | self | |
System.Collections.Generic.Dictionary<TKey, TValue><string, object> | style |
반환
타입 | 설명 |
---|---|
ScrollPanel |
AddChild(Control)
컨트롤에 자식을 추가한다.
선언
public override void AddChild(Control other)
매개 변수(인자)
타입 | 이름 | 설명 |
---|---|---|
Control | other |
재정의
New(Rect)
ScrollPanel 생성하기
선언
public static ScrollPanel New(Rect rect = null)
매개 변수(인자)
타입 | 이름 | 설명 |
---|---|---|
Rect | rect | Rect 범위 |
반환
타입 | 설명 |
---|---|
ScrollPanel |