Property | Type | Description | |
---|---|---|---|
alwaysOnScreen | bool | ||
anchorOffset | bool | ||
cullWhileDragging | bool | ||
generateNormals | bool | ||
list | BetterList |
||
onClipMove | OnClippingMoved | ||
onGeometryUpdated | OnGeometryUpdated | ||
renderQueue | RenderQueue | ||
showInPanelTool | bool | ||
startingRenderQueue | int | ||
widgetsAreStatic | bool |
Property | Type | Description | |
---|---|---|---|
Awake | void | ||
FillAllDrawCalls | void | ||
FillDrawCall | bool | ||
FindParent | void | ||
GetWindowSize | Vector2 | ||
InvalidateClipping | void | ||
LateUpdate | void | ||
OnDrawGizmos | void | ||
RebuildAllDrawCalls | void | ||
UpdateDrawCalls | void | ||
UpdateLayers | void | ||
UpdateSelf | void | ||
UpdateTransformMatrix | void | ||
UpdateWidgets | void |
Method | Description | |
---|---|---|
AddWidget ( UIWidget, w ) : void |
Make the following widget be managed by the panel.
|
|
Affects ( UIWidget, w ) : bool |
Whether the specified widget is going to be affected by this panel in any way.
|
|
CalculateConstrainOffset ( Vector2 min, Vector2 max ) : Vector3 |
Calculate the offset needed to be constrained within the panel's bounds.
|
|
CalculateFinalAlpha ( int frameID ) : float |
Widget's final alpha, after taking the panel's alpha into account.
|
|
CompareFunc ( UIPanel, a, UIPanel, b ) : int |
Function that can be used to depth-sort panels.
|
|
ConstrainTargetToBounds ( Transform target, Bounds &targetBounds, bool immediate ) : bool |
Constrain the current target position to be within panel bounds.
|
|
ConstrainTargetToBounds ( Transform target, bool immediate ) : bool |
Constrain the specified target to be within the panel's bounds.
|
|
Find ( Transform trans ) : UIPanel, |
Find the UIPanel responsible for handling the specified transform.
|
|
Find ( Transform trans, bool createIfMissing ) : UIPanel, |
Find the UIPanel responsible for handling the specified transform.
|
|
Find ( Transform trans, bool createIfMissing, int layer ) : UIPanel, |
Find the UIPanel responsible for handling the specified transform.
|
|
FindDrawCall ( UIWidget, w ) : UIDrawCall, |
Insert the specified widget into one of the existing draw calls if possible. If it's not possible, and a new draw call is required, 'null' is returned because draw call creation is a delayed operation.
|
|
GetSides ( Transform relativeTo ) : Vector3[] |
Get the sides of the rectangle relative to the specified transform. The order is left, top, right, bottom.
|
|
GetViewSize ( ) : Vector2 |
Panel's size -- which is either the clipping rect, or the screen dimensions.
|
|
Invalidate ( bool includeChildren ) : void |
Invalidating the panel should reset its alpha.
|
|
IsVisible ( UIWidget, w ) : bool |
Returns whether the specified widget is visible by the panel.
|
|
IsVisible ( Vector3 worldPos ) : bool |
Returns whether the specified world position is within the panel's bounds determined by the clipping rect.
|
|
IsVisible ( Vector3 a, Vector3 b, Vector3 c, Vector3 d ) : bool |
Returns whether the specified rectangle is visible by the panel. The coordinates must be in world space.
|
|
ParentHasChanged ( ) : void |
Find the parent panel, if we have one.
|
|
Refresh ( ) : void |
Immediately refresh the panel.
|
|
RemoveWidget ( UIWidget w ) : void |
Remove the widget from its current draw call, invalidating everything as needed.
|
|
SetDirty ( ) : void |
Invalidate the panel's draw calls, forcing them to be rebuilt on the next update. This call also affects all children.
|
|
SetRect ( float x, float y, float width, float height ) : void |
Set the panel's rectangle.
|
|
SortWidgets ( ) : void |
Immediately sort all child widgets.
|
Method | Description | |
---|---|---|
OnAnchor ( ) : void |
Update the edges after the anchors have been updated.
|
|
OnDisable ( ) : void |
Destroy all draw calls we've created when this script gets disabled.
|
|
OnEnable ( ) : void |
Reset the frame IDs.
|
|
OnInit ( ) : void |
Mark all widgets as having been changed so the draw calls get re-created.
|
|
OnStart ( ) : void |
Layer is used to ensure that if it changes, widgets get moved as well.
|
Method | Description | |
---|---|---|
Awake ( ) : void |
Cache components.
|
|
FillAllDrawCalls ( ) : void |
Fill the geometry fully, processing all widgets and re-creating all draw calls.
|
|
FillDrawCall ( UIDrawCall, dc ) : bool |
Fill the geometry for the specified draw call.
|
|
FindParent ( ) : void |
Find the parent panel, if we have one.
|
|
GetWindowSize ( ) : Vector2 |
Get the size of the game window in pixels.
|
|
InvalidateClipping ( ) : void |
Invalidate the panel's clipping, calling child panels in turn.
|
|
LateUpdate ( ) : void |
Update all panels and draw calls.
|
|
OnDrawGizmos ( ) : void |
Draw a visible pink outline for the clipped area.
|
|
RebuildAllDrawCalls ( ) : void | ||
UpdateDrawCalls ( ) : void |
Update all draw calls associated with the panel.
|
|
UpdateLayers ( ) : void |
Update the widget layers if the panel's layer has changed.
|
|
UpdateSelf ( ) : void |
Update the panel, all of its widgets and draw calls.
|
|
UpdateTransformMatrix ( ) : void |
Update the world-to-local transform matrix as well as clipping bounds.
|
|
UpdateWidgets ( ) : void |
Update all of the widgets belonging to this panel.
|
public CalculateConstrainOffset ( Vector2 min, Vector2 max ) : Vector3 | ||
min | Vector2 | |
max | Vector2 | |
return | Vector3 |
public CalculateFinalAlpha ( int frameID ) : float | ||
frameID | int | |
return | float |
static public CompareFunc ( UIPanel, a, UIPanel, b ) : int | ||
a | UIPanel, | |
b | UIPanel, | |
return | int |
public ConstrainTargetToBounds ( Transform target, Bounds &targetBounds, bool immediate ) : bool | ||
target | Transform | |
targetBounds | Bounds | |
immediate | bool | |
return | bool |
public ConstrainTargetToBounds ( Transform target, bool immediate ) : bool | ||
target | Transform | |
immediate | bool | |
return | bool |
static public Find ( Transform trans ) : UIPanel, | ||
trans | Transform | |
return | UIPanel, |
static public Find ( Transform trans, bool createIfMissing ) : UIPanel, | ||
trans | Transform | |
createIfMissing | bool | |
return | UIPanel, |
static public Find ( Transform trans, bool createIfMissing, int layer ) : UIPanel, | ||
trans | Transform | |
createIfMissing | bool | |
layer | int | |
return | UIPanel, |
public FindDrawCall ( UIWidget, w ) : UIDrawCall, | ||
w | UIWidget, | |
return | UIDrawCall, |
public GetSides ( Transform relativeTo ) : Vector3[] | ||
relativeTo | Transform | |
return | Vector3[] |
public Invalidate ( bool includeChildren ) : void | ||
includeChildren | bool | |
return | void |
public IsVisible ( Vector3 a, Vector3 b, Vector3 c, Vector3 d ) : bool | ||
a | Vector3 | |
b | Vector3 | |
c | Vector3 | |
d | Vector3 | |
return | bool |
public SetRect ( float x, float y, float width, float height ) : void | ||
x | float | |
y | float | |
width | float | |
height | float | |
return | void |
public OnGeometryUpdated onGeometryUpdated | ||
return | OnGeometryUpdated |