Property | Type | Description | |
---|---|---|---|
alignment | NGUIText.Alignment | ||
atlas | UIAtlas, | ||
backgroundColor | Color | ||
backgroundSprite | string | ||
bitmapFont | UIFont, | ||
current | UIPopupList, | ||
fontSize | int | ||
fontStyle | FontStyle, | ||
highlightColor | Color | ||
highlightSprite | string | ||
isAnimated | bool | ||
isLocalized | bool | ||
items | List |
||
onChange | List |
||
padding | Vector2 | ||
position | Position, | ||
textColor | Color | ||
trueTypeFont | Font |
Property | Type | Description | |
---|---|---|---|
Animate | void | ||
AnimateColor | void | ||
AnimatePosition | void | ||
AnimateScale | void | ||
GetHighlightPosition | Vector3 | ||
Highlight | void | ||
OnClick | void | ||
OnEnable | void | ||
OnItemClick | void | ||
OnItemHover | void | ||
OnItemPress | void | ||
OnKey | void | ||
OnLocalize | void | ||
OnSelect | void | ||
OnValidate | void | ||
Select | void | ||
Start | void | ||
UpdateTweenPosition | IEnumerator |
Method | Description | |
---|---|---|
Close ( ) : void |
Manually close the popup list.
|
Method | Description | |
---|---|---|
TriggerCallbacks ( ) : void |
Trigger all event notification callbacks.
|
Method | Description | |
---|---|---|
Animate ( UIWidget, widget, bool placeAbove, float bottom ) : void |
Helper function used to animate widgets.
|
|
AnimateColor ( UIWidget, widget ) : void |
Helper function that causes the widget to smoothly fade in.
|
|
AnimatePosition ( UIWidget, widget, bool placeAbove, float bottom ) : void |
Helper function that causes the widget to smoothly move into position.
|
|
AnimateScale ( UIWidget, widget, bool placeAbove, float bottom ) : void |
Helper function that causes the widget to smoothly grow until it reaches its original size.
|
|
GetHighlightPosition ( ) : Vector3 |
Helper function that calculates where the tweened position should be.
|
|
Highlight ( UILabel, lbl, bool instant ) : void |
Visibly highlight the specified transform by moving the highlight sprite to be over it.
|
|
OnClick ( ) : void |
Display the drop-down list when the game object gets clicked on.
|
|
OnEnable ( ) : void |
Remove legacy functionality.
|
|
OnItemClick ( GameObject go ) : void |
Close the popup list on click.
|
|
OnItemHover ( GameObject go, bool isOver ) : void |
Event function triggered when the mouse hovers over an item.
|
|
OnItemPress ( GameObject go, bool isPressed ) : void |
Event function triggered when the drop-down list item gets clicked on.
|
|
OnKey ( KeyCode, key ) : void |
React to key-based input.
|
|
OnLocalize ( ) : void |
Localize the text label.
|
|
OnSelect ( bool isSelected ) : void |
Get rid of the popup dialog when the selection gets lost.
|
|
OnValidate ( ) : void | ||
Select ( UILabel, lbl, bool instant ) : void |
Select the specified label.
|
|
Start ( ) : void |
Send out the selection message on start.
|
|
UpdateTweenPosition ( ) : IEnumerator |
Periodically update the tweened target position. It's needed because the popup list animates into view, and the target position changes.
|