Class Control
커스텀 UI의 기반 클래스
상속
object
Control
네임스페이스: Game.Scripts.UI
어셈블리: Assembly-CSharp.dll
Syntax
[MoonSharpUserData]
public class Control : BaseControl
생성자
Control()
커스텀 UI의 기반 클래스
선언
public Control()
Control(Rect, GameObject)
커스텀 UI의 기반 클래스
선언
public Control(Rect rect, GameObject go = null)
매개 변수(인자)
타입 | 이름 | 설명 |
---|---|---|
Rect | rect | |
UnityEngine.GameObject | go |
Control(RectTransform, Control)
커스텀 UI의 기반 클래스
선언
public Control(RectTransform rt, Control control)
매개 변수(인자)
타입 | 이름 | 설명 |
---|---|---|
UnityEngine.RectTransform | rt | |
Control | control |
Control(RectTransform)
커스텀 UI의 기반 클래스
선언
public Control(RectTransform rt)
매개 변수(인자)
타입 | 이름 | 설명 |
---|---|---|
UnityEngine.RectTransform | rt |
변수
_canvasGroup
커스텀 UI의 기반 클래스
선언
protected CanvasGroup _canvasGroup
필드 값
타입 | 설명 |
---|---|
UnityEngine.CanvasGroup |
_style
커스텀 UI의 기반 클래스
선언
protected Dictionary<string, object> _style
필드 값
타입 | 설명 |
---|---|
System.Collections.Generic.Dictionary<TKey, TValue><string, object> |
프로퍼티
children
컨트롤의 자식 컨트롤
선언
public List<Control> children { get; set; }
프로퍼티 값
타입 | 설명 |
---|---|
System.Collections.Generic.List<T><Control> |
enabled
컨트롤의 활성화 여부
선언
public virtual bool enabled { get; set; }
프로퍼티 값
타입 | 설명 |
---|---|
bool |
masked
Mask 사용 여부
선언
public bool masked { get; set; }
프로퍼티 값
타입 | 설명 |
---|---|
bool |
orderIndex
UI의 보여주기 순서 값
선언
public int orderIndex { get; set; }
프로퍼티 값
타입 | 설명 |
---|---|
int |
parent
컨트롤의 부모 컨트롤
선언
public Control parent { get; set; }
프로퍼티 값
타입 | 설명 |
---|---|
Control |
showOnTop
현재 이 UI가 기본 UI들의 앞인지 뒤인지 설정 (True: 앞, False: 뒤)
선언
public bool showOnTop { get; set; }
프로퍼티 값
타입 | 설명 |
---|---|
bool |
style
컨트롤의 스타일 정보를 테이블 형태로 설정합니다
선언
public Dictionary<string, object> style { get; set; }
프로퍼티 값
타입 | 설명 |
---|---|
System.Collections.Generic.Dictionary<TKey, TValue><string, object> |
함수
AddChild(Control)
컨트롤에 자식을 추가한다.
선언
public virtual void AddChild(Control other)
매개 변수(인자)
타입 | 이름 | 설명 |
---|---|---|
Control | other |
AttachToTransform(Transform)
커스텀 UI의 기반 클래스
선언
public virtual void AttachToTransform(Transform inTransform)
매개 변수(인자)
타입 | 이름 | 설명 |
---|---|---|
UnityEngine.Transform | inTransform |
AttachToUnit(Point, Unit)
유닛에 컨트롤 추가하기
선언
public virtual void AttachToUnit(Point position, Unit unit)
매개 변수(인자)
타입 | 이름 | 설명 |
---|---|---|
Point | position | 생성될 위치 |
Unit | unit | 유닛 |
AttachToUnit(Unit)
유닛에 컨트롤 추가하기
선언
public virtual void AttachToUnit(Unit unit)
매개 변수(인자)
타입 | 이름 | 설명 |
---|---|---|
Unit | unit | 유닛 |
AttachToUnitID(Point, long)
유닛에 컨트롤 추가하기
선언
public virtual void AttachToUnitID(Point position, long id)
매개 변수(인자)
타입 | 이름 | 설명 |
---|---|---|
Point | position | 생성될 위치 |
long | id | 유닛ID |
AttachToUnitID(long)
유닛에 컨트롤 추가하기
선언
public virtual void AttachToUnitID(long id)
매개 변수(인자)
타입 | 이름 | 설명 |
---|---|---|
long | id | 유닛ID |
Clone()
이 컨트롤을 복제한다.
선언
public Control Clone()
반환
타입 | 설명 |
---|---|
Control |
Destroy()
이 컨트롤을 파괴한다.
선언
public virtual void Destroy()
ForceRebuildLayoutImmediate()
레이아웃 강제 갱신
선언
public void ForceRebuildLayoutImmediate()
GetChild(string)
컨트롤에서 바로 아래 단계의 자식을 가져온다
선언
public virtual Control GetChild(string childName)
매개 변수(인자)
타입 | 이름 | 설명 |
---|---|---|
string | childName |
반환
타입 | 설명 |
---|---|
Control |
GetOrderIndex()
UI의 보여주기 순서 값
선언
public int GetOrderIndex()
반환
타입 | 설명 |
---|---|
int |
OrderToFirst()
이 컨트롤의 자식의 맨 앞으로 옮긴다.
선언
public void OrderToFirst()
OrderToLast()
이 컨트롤의 자식의 맨 뒤로 옮긴다.
선언
public void OrderToLast()
RemoveChild(Control)
부모 컨트롤에서 해당 자식 컨트롤과의 부모-자식 관계를 해제한다.
선언
public void RemoveChild(Control other)
매개 변수(인자)
타입 | 이름 | 설명 |
---|---|---|
Control | other |
SetOrderIndex(int)
UI 보여주기 순서 변경
선언
public void SetOrderIndex(int index)
매개 변수(인자)
타입 | 이름 | 설명 |
---|---|---|
int | index |
SetParent(Control)
컨트롤의 부모를 설정합니다.
선언
public virtual void SetParent(Control other)
매개 변수(인자)
타입 | 이름 | 설명 |
---|---|---|
Control | other |