C# 클래스 UIWidget, DsynBio

Base class for all UI components that should be derived from when creating new widget types.
상속: MonoBehaviour
파일 보기 프로젝트 열기: CyberCRI/DsynBio 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
mChanged bool
mPanel UIPanel
mPlayMode bool
mTrans Transform

공개 메소드들

메소드 설명
CheckLayer ( ) : void

Check to ensure that the widget resides on the same layer as its panel.

CompareFunc ( UIWidget, left, UIWidget, right ) : int

Static widget comparison function used for Z-sorting.

CreatePanel ( ) : void

Ensure we have a panel referencing this widget.

MakePixelPerfect ( ) : void

Make the widget pixel-perfect.

MarkAsChanged ( ) : void

Tell the panel responsible for the widget that something has changed and the buffers need to be rebuilt.

MarkAsChangedLite ( ) : void

Only sets the local flag, does not notify the panel. In most cases you will want to use MarkAsChanged() instead.

OnFill ( BetterList verts, BetterList uvs, BetterList cols ) : void

Virtual function called by the UIPanel that fills the buffers.

OnUpdate ( ) : bool

Virtual version of the Update function. Should return 'true' if the widget has changed visually.

ParentHasChanged ( ) : void

Checks to ensure that the widget is still parented to the right panel.

Update ( ) : void

Ensure that we have a panel to work with. The reason the panel isn't added in OnEnable() is because OnEnable() is called right after Awake(), which is a problem when the widget is brought in on a prefab object as it happens before it gets parented.

UpdateGeometry ( Matrix4x4 &worldToPanel, bool parentMoved, bool generateNormals ) : bool

Update the widget and fill its geometry if necessary. Returns whether something was changed.

WriteToBuffers ( BetterList v, BetterList u, BetterList c, BetterList n, BetterList t ) : void

Append the local geometry buffers to the specified ones.

보호된 메소드들

메소드 설명
Awake ( ) : void

Remember whether we're in play mode.

OnDestroy ( ) : void

Unregister this widget.

OnDisable ( ) : void

Clear references.

OnDrawGizmos ( ) : void

Draw some selectable gizmos.

OnEnable ( ) : void

Mark the widget and the panel as having been changed.

OnStart ( ) : void

Virtual Start() functionality for widgets.

Start ( ) : void

Set the depth, call the virtual start function, and sure we have a panel to work with.

비공개 메소드들

메소드 설명
CheckParent ( ) : void

메소드 상세

Awake() 보호된 메소드

Remember whether we're in play mode.
protected Awake ( ) : void
리턴 void

CheckLayer() 공개 메소드

Check to ensure that the widget resides on the same layer as its panel.
public CheckLayer ( ) : void
리턴 void

CompareFunc() 공개 정적인 메소드

Static widget comparison function used for Z-sorting.
public static CompareFunc ( UIWidget, left, UIWidget, right ) : int
left UIWidget,
right UIWidget,
리턴 int

CreatePanel() 공개 메소드

Ensure we have a panel referencing this widget.
public CreatePanel ( ) : void
리턴 void

MakePixelPerfect() 공개 메소드

Make the widget pixel-perfect.
public MakePixelPerfect ( ) : void
리턴 void

MarkAsChanged() 공개 메소드

Tell the panel responsible for the widget that something has changed and the buffers need to be rebuilt.
public MarkAsChanged ( ) : void
리턴 void

MarkAsChangedLite() 공개 메소드

Only sets the local flag, does not notify the panel. In most cases you will want to use MarkAsChanged() instead.
public MarkAsChangedLite ( ) : void
리턴 void

OnDestroy() 보호된 메소드

Unregister this widget.
protected OnDestroy ( ) : void
리턴 void

OnDisable() 보호된 메소드

Clear references.
protected OnDisable ( ) : void
리턴 void

OnDrawGizmos() 보호된 메소드

Draw some selectable gizmos.
protected OnDrawGizmos ( ) : void
리턴 void

OnEnable() 보호된 메소드

Mark the widget and the panel as having been changed.
protected OnEnable ( ) : void
리턴 void

OnFill() 공개 메소드

Virtual function called by the UIPanel that fills the buffers.
public OnFill ( BetterList verts, BetterList uvs, BetterList cols ) : void
verts BetterList
uvs BetterList
cols BetterList
리턴 void

OnStart() 보호된 메소드

Virtual Start() functionality for widgets.
protected OnStart ( ) : void
리턴 void

OnUpdate() 공개 메소드

Virtual version of the Update function. Should return 'true' if the widget has changed visually.
public OnUpdate ( ) : bool
리턴 bool

ParentHasChanged() 공개 메소드

Checks to ensure that the widget is still parented to the right panel.
public ParentHasChanged ( ) : void
리턴 void

Start() 보호된 메소드

Set the depth, call the virtual start function, and sure we have a panel to work with.
protected Start ( ) : void
리턴 void

Update() 공개 메소드

Ensure that we have a panel to work with. The reason the panel isn't added in OnEnable() is because OnEnable() is called right after Awake(), which is a problem when the widget is brought in on a prefab object as it happens before it gets parented.
public Update ( ) : void
리턴 void

UpdateGeometry() 공개 메소드

Update the widget and fill its geometry if necessary. Returns whether something was changed.
public UpdateGeometry ( Matrix4x4 &worldToPanel, bool parentMoved, bool generateNormals ) : bool
worldToPanel Matrix4x4
parentMoved bool
generateNormals bool
리턴 bool

WriteToBuffers() 공개 메소드

Append the local geometry buffers to the specified ones.
public WriteToBuffers ( BetterList v, BetterList u, BetterList c, BetterList n, BetterList t ) : void
v BetterList
u BetterList
c BetterList
n BetterList
t BetterList
리턴 void

프로퍼티 상세

mChanged 보호되어 있는 프로퍼티

protected bool mChanged
리턴 bool

mPanel 보호되어 있는 프로퍼티

protected UIPanel mPanel
리턴 UIPanel

mPlayMode 보호되어 있는 프로퍼티

protected bool mPlayMode
리턴 bool

mTrans 보호되어 있는 프로퍼티

protected Transform mTrans
리턴 Transform