Property | Type | Description | |
---|---|---|---|
mChanged | bool | ||
mPanel | UIPanel | ||
mPlayMode | bool | ||
mTrans | Transform |
Method | Description | |
---|---|---|
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 |
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 |
Append the local geometry buffers to the specified ones.
|
Method | Description | |
---|---|---|
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.
|
Method | Description | |
---|---|---|
CheckParent ( ) : void |
public static CompareFunc ( UIWidget, left, UIWidget, right ) : int | ||
left | UIWidget, | |
right | UIWidget, | |
return | int |
public OnFill ( BetterList |
||
verts | BetterList |
|
uvs | BetterList |
|
cols | BetterList |
|
return | void |
public UpdateGeometry ( Matrix4x4 &worldToPanel, bool parentMoved, bool generateNormals ) : bool | ||
worldToPanel | Matrix4x4 | |
parentMoved | bool | |
generateNormals | bool | |
return | bool |
public WriteToBuffers ( BetterList |
||
v | BetterList |
|
u | BetterList |
|
c | BetterList |
|
n | BetterList |
|
t | BetterList |
|
return | void |