Property | Type | Description | |
---|---|---|---|
activateWhenAdding | bool | ||
alignment | ALIGNMENT | ||
clipContents | bool | ||
clipWhenMoving | bool | ||
direction | DIRECTION | ||
dragThreshold | float | ||
itemSpacing | float | ||
manager | SpriteManager, | ||
methodToInvokeOnSelect | string | ||
orientation | ORIENTATION | ||
prefabItems | PrefabListItem[], | ||
sceneItems | GameObject[] | ||
scriptWithMethodToInvoke | MonoBehaviour | ||
slider | UISlider, | ||
spacingAtEnds | bool | ||
touchScroll | bool | ||
viewableArea | Vector2 |
Property | Type | Description | |
---|---|---|---|
cachedPos | Vector3 | ||
cachedRot | Quaternion | ||
cachedScale | Vector3 | ||
changeDelegate | EZValueChangedDelegate | ||
clientClippingRect | Rect3D | ||
container | IUIContainer | ||
contentExtents | float | ||
inputDelegate | EZInputDelegate | ||
isScrolling | bool | ||
items | List |
||
m_controlIsEnabled | bool | ||
m_started | bool | ||
mover | GameObject | ||
noTouch | bool | ||
scrollMax | float | ||
scrollPos | float | ||
selectedItem | IUIListObject | ||
tempVisItems | List |
||
visibleItems | List |
Method | Description | |
---|---|---|
AddInputDelegate ( EZInputDelegate del ) : void | ||
AddItem ( GameObject itemGO ) : void |
Adds an item to the end of the list. NOTE: For proper appearance, list items should each be of uniform width when the list is vertical, and of uniform height when the list is horizontal. Besides that, list items can vary in size.
|
|
AddItem ( IUIListObject item ) : void |
Adds an item to the end of the list. NOTE: For proper appearance, list items should each be of uniform width when the list is vertical, and of uniform height when the list is horizontal. Besides that, list items can vary in size.
|
|
AddItem ( IUIListObject item, string text ) : void |
Adds an item to the end of the list. NOTE: For proper appearance, list items should each be of uniform width when the list is vertical, and of uniform height when the list is horizontal. Besides that, list items can vary in size.
|
|
AddValueChangedDelegate ( EZValueChangedDelegate del ) : void | ||
Awake ( ) : void | ||
ClearList ( bool destroy ) : void |
Empties the contents of the list entirely. Destroys the items if instructed, otherwise it just deactivates them.
|
|
Create ( string name, Vector3 pos ) : UIScrollList, |
Creates a GameObject and attaches this component type to it.
|
|
Create ( string name, Vector3 pos, Quaternion rotation ) : UIScrollList, |
Creates a GameObject and attaches this component type to it.
|
|
CreateItem ( GameObject prefab ) : IUIListObject |
Instantiates a new list item based on the prefab to clone, adds it to the end of the list and returns a reference to it. NOTE: The prefab/GameObject is required to have a component that implements IUIListObject. NOTE: For proper appearance, list items should each be of uniform width when the list is vertical, and of uniform height when the list is horizontal. Besides that, list items can vary in size.
|
|
CreateItem ( GameObject prefab, int position ) : IUIListObject |
Instantiates a new list item based on the prefab to clone, adds it to the list at the position specified by "position" and returns a reference to it. NOTE: The prefab/GameObject is required to have a component that implements IUIListObject. NOTE: For proper appearance, list items should each be of uniform width when the list is vertical, and of uniform height when the list is horizontal. Besides that, list items can vary in size.
|
|
CreateItem ( GameObject prefab, int position, string text ) : IUIListObject |
Instantiates a new list item based on the prefab to clone, adds it to the list at the position specified by "position" and returns a reference to it. NOTE: The prefab/GameObject is required to have a component that implements IUIListObject. NOTE: For proper appearance, list items should each be of uniform width when the list is vertical, and of uniform height when the list is horizontal. Besides that, list items can vary in size.
|
|
CreateItem ( GameObject prefab, string text ) : IUIListObject |
Instantiates a new list item based on the prefab to clone, adds it to the end of the list and returns a reference to it. NOTE: The prefab/GameObject is required to have a component that implements IUIListObject. NOTE: For proper appearance, list items should each be of uniform width when the list is vertical, and of uniform height when the list is horizontal. Besides that, list items can vary in size.
|
|
DidClick ( IUIListObject item ) : void | ||
DidSelect ( IUIListObject item ) : void | ||
GetItem ( int index ) : IUIListObject |
Returns a reference to the specified list item.
|
|
GotFocus ( ) : bool | ||
InsertItem ( IUIListObject item, int position ) : void |
Inserts a list item at the specified position in the list.
|
|
InsertItem ( IUIListObject item, int position, string text ) : void |
Inserts a list item at the specified position in the list.
|
|
ListDragged ( POINTER_INFO, ptr ) : void | ||
OnDrawGizmosSelected ( ) : void | ||
OnEnable ( ) : void | ||
OnInput ( POINTER_INFO, ptr ) : void | ||
PointerReleased ( ) : void | ||
PositionItems ( ) : void |
Positions list items according to the current scroll position.
|
|
RemoveInputDelegate ( EZInputDelegate del ) : void | ||
RemoveItem ( IUIListObject item, bool destroy ) : void |
Removes the specified item. Remaining items are repositioned to fill the gap. The removed item is destroyed if 'destroy' is true. Otherwise, it is deactivated.
|
|
RemoveItem ( int index, bool destroy ) : void |
Removes the item at the specified index. Remaining items are repositioned to fill the gap. The removed item is destroyed if 'destroy' is true. Otherwise, it is deactivated.
|
|
RemoveValueChangedDelegate ( EZValueChangedDelegate del ) : void | ||
RepositionItems ( ) : void |
Repositions list items according to the current scroll position, and adjusts for any change in the items' extents.
|
|
RequestContainership ( IUIContainer cont ) : bool | ||
ScrollListTo ( float pos ) : void |
Scrolls the list directly to the position indicated (0-1).
|
|
SetInputDelegate ( EZInputDelegate del ) : void | ||
SetSelectedItem ( int index ) : void |
Sets the item at the specified index as the currently selected item.
|
|
SetValueChangedDelegate ( EZValueChangedDelegate del ) : void | ||
SliderMoved ( IUIObject slider ) : void | ||
Start ( ) : void | ||
Update ( ) : void |
Method | Description | |
---|---|---|
AddItemsToContainer ( ) : void | ||
CalcClippingRect ( ) : void | ||
ClipItems ( ) : void | ||
PositionHorizontally ( bool updateExtents ) : void | ||
PositionVertically ( bool updateExtents ) : void | ||
RemoveItemsFromContainer ( ) : void | ||
ScrollListTo_Internal ( float pos ) : void | ||
UpdateContentExtents ( float change ) : void |
public AddInputDelegate ( EZInputDelegate del ) : void | ||
del | EZInputDelegate | |
return | void |
public AddItem ( IUIListObject item ) : void | ||
item | IUIListObject | Reference to the list item to be added. |
return | void |
public AddItem ( IUIListObject item, string text ) : void | ||
item | IUIListObject | Reference to the list item to be added. |
text | string | Text to display in the item (requires that the item has a TextMesh associated with it, preferably in a child GameObject). |
return | void |
public AddValueChangedDelegate ( EZValueChangedDelegate del ) : void | ||
del | EZValueChangedDelegate | |
return | void |
public ClearList ( bool destroy ) : void | ||
destroy | bool | When true, the list items are actually destroyed. Otherwise, they are deactivated. |
return | void |
static public Create ( string name, Vector3 pos ) : UIScrollList, | ||
name | string | Name to give to the new GameObject. |
pos | Vector3 | Position, in world space, where the new object should be created. |
return | UIScrollList, |
static public Create ( string name, Vector3 pos, Quaternion rotation ) : UIScrollList, | ||
name | string | Name to give to the new GameObject. |
pos | Vector3 | Position, in world space, where the new object should be created. |
rotation | Quaternion | Rotation of the object. |
return | UIScrollList, |
public CreateItem ( GameObject prefab ) : IUIListObject | ||
prefab | GameObject | GameObject/Prefab which is to be instantiated and added to the end of the list. |
return | IUIListObject |
public CreateItem ( GameObject prefab, int position ) : IUIListObject | ||
prefab | GameObject | GameObject/Prefab which is to be instantiated and added to the end of the list. |
position | int | 0-based index where the new item will be placed in the list. |
return | IUIListObject |
public CreateItem ( GameObject prefab, int position, string text ) : IUIListObject | ||
prefab | GameObject | GameObject/Prefab which is to be instantiated and added to the end of the list. |
position | int | 0-based index where the new item will be placed in the list. |
text | string | Text to display in the item (requires that the item has a TextMesh associated with it, preferably in a child GameObject). |
return | IUIListObject |
public CreateItem ( GameObject prefab, string text ) : IUIListObject | ||
prefab | GameObject | GameObject/Prefab which is to be instantiated and added to the end of the list. |
text | string | Text to display in the item (requires that the item has a TextMesh associated with it, preferably in a child GameObject). |
return | IUIListObject |
public DidClick ( IUIListObject item ) : void | ||
item | IUIListObject | |
return | void |
public DidSelect ( IUIListObject item ) : void | ||
item | IUIListObject | |
return | void |
public GetItem ( int index ) : IUIListObject | ||
index | int | Index of the item to retrieve. |
return | IUIListObject |
public InsertItem ( IUIListObject item, int position ) : void | ||
item | IUIListObject | Reference to the item to be inserted into the list. |
position | int | 0-based index of the position in the list where the item will be placed. |
return | void |
public InsertItem ( IUIListObject item, int position, string text ) : void | ||
item | IUIListObject | Reference to the item to be inserted into the list. |
position | int | 0-based index of the position in the list where the item will be placed. |
text | string | Text to display in the item (requires that the item has a TextMesh associated with it, preferably in a child GameObject). |
return | void |
public ListDragged ( POINTER_INFO, ptr ) : void | ||
ptr | POINTER_INFO, | |
return | void |
protected PositionHorizontally ( bool updateExtents ) : void | ||
updateExtents | bool | |
return | void |
protected PositionVertically ( bool updateExtents ) : void | ||
updateExtents | bool | |
return | void |
public RemoveInputDelegate ( EZInputDelegate del ) : void | ||
del | EZInputDelegate | |
return | void |
public RemoveItem ( IUIListObject item, bool destroy ) : void | ||
item | IUIListObject | |
destroy | bool | |
return | void |
public RemoveItem ( int index, bool destroy ) : void | ||
index | int | Index of the item to remove. |
destroy | bool | |
return | void |
protected RemoveItemsFromContainer ( ) : void | ||
return | void |
public RemoveValueChangedDelegate ( EZValueChangedDelegate del ) : void | ||
del | EZValueChangedDelegate | |
return | void |
public RequestContainership ( IUIContainer cont ) : bool | ||
cont | IUIContainer | |
return | bool |
public ScrollListTo ( float pos ) : void | ||
pos | float | Position of the list - 0-1 (0 == beginning, 1 == end) |
return | void |
protected ScrollListTo_Internal ( float pos ) : void | ||
pos | float | |
return | void |
public SetInputDelegate ( EZInputDelegate del ) : void | ||
del | EZInputDelegate | |
return | void |
public SetSelectedItem ( int index ) : void | ||
index | int | The zero-based index of the item. |
return | void |
public SetValueChangedDelegate ( EZValueChangedDelegate del ) : void | ||
del | EZValueChangedDelegate | |
return | void |
public SliderMoved ( IUIObject slider ) : void | ||
slider | IUIObject | |
return | void |
protected UpdateContentExtents ( float change ) : void | ||
change | float | |
return | void |
protected EZValueChangedDelegate changeDelegate | ||
return | EZValueChangedDelegate |
public MonoBehaviour scriptWithMethodToInvoke | ||
return | MonoBehaviour |