C# 클래스 UIAnchor, Hero.Coli

상속: MonoBehaviour
파일 보기 프로젝트 열기: CyberCRI/Hero.Coli 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
halfPixelOffset bool
panelContainer UIPanel,
relativeOffset Vector2
side Side,
uiCamera Camera
widgetContainer UIWidget,

공개 메소드들

메소드 설명
Awake ( ) : void
Start ( ) : void

Automatically find the camera responsible for drawing the widgets under this object.

Update ( ) : void

Anchor the object to the appropriate point.

메소드 상세

Awake() 공개 메소드

public Awake ( ) : void
리턴 void

Start() 공개 메소드

Automatically find the camera responsible for drawing the widgets under this object.
public Start ( ) : void
리턴 void

Update() 공개 메소드

Anchor the object to the appropriate point.
public Update ( ) : void
리턴 void

프로퍼티 상세

halfPixelOffset 공개적으로 프로퍼티

Whether a half-pixel offset will be applied on windows machines. Most of the time you'll want to leave this as 'true'. This value is only used if the widget and panel containers were not specified.
public bool halfPixelOffset
리턴 bool

panelContainer 공개적으로 프로퍼티

Panel used to determine the container's bounds. Overwrites the widget-based anchoring if the value was specified.
public UIPanel, panelContainer
리턴 UIPanel,

relativeOffset 공개적으로 프로퍼티

Relative offset value, if any. For example "0.25" with 'side' set to Left, means 25% from the left side.
public Vector2 relativeOffset
리턴 Vector2

side 공개적으로 프로퍼티

Side or corner to anchor to.
public Side, side
리턴 Side,

uiCamera 공개적으로 프로퍼티

Camera used to determine the anchor bounds. Set automatically if none was specified.
public Camera uiCamera
리턴 Camera

widgetContainer 공개적으로 프로퍼티

Widget used to determine the container's bounds. Overwrites the camera-based anchoring if the value was specified.
public UIWidget, widgetContainer
리턴 UIWidget,