Class GridPanel
자식 컨트롤을 Grid 형태로 표시하는 클래스
네임스페이스: Game.Scripts.UI
어셈블리: Assembly-CSharp.dll
Syntax
[MoonSharpUserData]
public class GridPanel : Control
생성자
GridPanel(Rect)
자식 컨트롤을 Grid 형태로 표시하는 클래스
선언
public GridPanel(Rect rect = null)
매개 변수(인자)
타입 | 이름 | 설명 |
---|---|---|
Rect | rect |
GridPanel(RectTransform, GridPanel)
자식 컨트롤을 Grid 형태로 표시하는 클래스
선언
public GridPanel(RectTransform rect, GridPanel panel)
매개 변수(인자)
타입 | 이름 | 설명 |
---|---|---|
UnityEngine.RectTransform | rect | |
GridPanel | panel |
변수
_csf
자식 컨트롤을 Grid 형태로 표시하는 클래스
선언
protected ContentSizeFitter _csf
필드 값
타입 | 설명 |
---|---|
UnityEngine.UI.ContentSizeFitter |
_grid
자식 컨트롤을 Grid 형태로 표시하는 클래스
선언
protected GridLayoutGroup _grid
필드 값
타입 | 설명 |
---|---|
UnityEngine.UI.GridLayoutGroup |
프로퍼티
cellSize
Grid로 배치된 컨트롤의 크기
선언
public Point cellSize { get; set; }
프로퍼티 값
타입 | 설명 |
---|---|
Point |
childAlign
하위 요소 정렬
0 => UpperLeft 왼쪽 위
1 => UpperCenter 가운데 위
2 => UpperRight 오른쪽 위
3 => MiddleLeft 왼쪽 중간
4 => MiddleCenter가운데 중간
5 => MiddleRight 오른쪽 중간
6 => LowerLeft 왼쪽 아래
7 => LowerCenter 가운데 아래
8 => LowerRight 오른쪽 아래
선언
public int childAlign { get; set; }
프로퍼티 값
타입 | 설명 |
---|---|
int |
constraint
행/열 수 제한 여부(기본값: 0)
(0: Flexible[유동적] / 1: FixedRowCount[열] / 2: FixedColumnCount[행])
선언
public int constraint { get; set; }
프로퍼티 값
타입 | 설명 |
---|---|
int |
constraintCount
행/열 수 제한 갯수
선언
public int constraintCount { get; set; }
프로퍼티 값
타입 | 설명 |
---|---|
int |
contentSizeFitterEnabled
컨텐츠 사이즈 핏의 활성/비활성 여부
선언
public bool contentSizeFitterEnabled { get; set; }
프로퍼티 값
타입 | 설명 |
---|---|
bool |
horizontal
가로 배치 여부
선언
public bool horizontal { get; set; }
프로퍼티 값
타입 | 설명 |
---|---|
bool |
padding
Grid Panel 바깥의 여백
선언
public RectOff padding { get; set; }
프로퍼티 값
타입 | 설명 |
---|---|
RectOff |
spacing
하위 요소들 사이의 간격을 조절하는 값
선언
public Point spacing { get; set; }
프로퍼티 값
타입 | 설명 |
---|---|
Point |
vertical
세로 배치 여부
선언
public bool vertical { get; set; }
프로퍼티 값
타입 | 설명 |
---|---|
bool |
함수
__call(object, Rect)
자식 컨트롤을 Grid 형태로 표시하는 클래스
선언
[MoonSharpUserDataMetamethod("__call")]
public static GridPanel __call(object self, Rect rect)
매개 변수(인자)
타입 | 이름 | 설명 |
---|---|---|
object | self | |
Rect | rect |
반환
타입 | 설명 |
---|---|
GridPanel |
__call(object)
자식 컨트롤을 Grid 형태로 표시하는 클래스
선언
[MoonSharpUserDataMetamethod("__call")]
public static GridPanel __call(object self)
매개 변수(인자)
타입 | 이름 | 설명 |
---|---|---|
object | self |
반환
타입 | 설명 |
---|---|
GridPanel |