프로퍼티 | 타입 | 설명 | |
---|---|---|---|
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 |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
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 |
메소드 | 설명 | |
---|---|---|
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 |
메소드 | 설명 | |
---|---|---|
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 | |
리턴 | void |
public AddItem ( IUIListObject item ) : void | ||
item | IUIListObject | Reference to the list item to be added. |
리턴 | 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). |
리턴 | void |
public AddValueChangedDelegate ( EZValueChangedDelegate del ) : void | ||
del | EZValueChangedDelegate | |
리턴 | void |
public ClearList ( bool destroy ) : void | ||
destroy | bool | When true, the list items are actually destroyed. Otherwise, they are deactivated. |
리턴 | 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. |
리턴 | 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. |
리턴 | UIScrollList, |
public CreateItem ( GameObject prefab ) : IUIListObject | ||
prefab | GameObject | GameObject/Prefab which is to be instantiated and added to the end of the list. |
리턴 | 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. |
리턴 | 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). |
리턴 | 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). |
리턴 | IUIListObject |
public GetItem ( int index ) : IUIListObject | ||
index | int | Index of the item to retrieve. |
리턴 | 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. |
리턴 | 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). |
리턴 | void |
protected PositionHorizontally ( bool updateExtents ) : void | ||
updateExtents | bool | |
리턴 | void |
protected PositionVertically ( bool updateExtents ) : void | ||
updateExtents | bool | |
리턴 | void |
public RemoveInputDelegate ( EZInputDelegate del ) : void | ||
del | EZInputDelegate | |
리턴 | void |
public RemoveItem ( IUIListObject item, bool destroy ) : void | ||
item | IUIListObject | |
destroy | bool | |
리턴 | void |
public RemoveItem ( int index, bool destroy ) : void | ||
index | int | Index of the item to remove. |
destroy | bool | |
리턴 | void |
public RemoveValueChangedDelegate ( EZValueChangedDelegate del ) : void | ||
del | EZValueChangedDelegate | |
리턴 | void |
public RequestContainership ( IUIContainer cont ) : bool | ||
cont | IUIContainer | |
리턴 | bool |
public ScrollListTo ( float pos ) : void | ||
pos | float | Position of the list - 0-1 (0 == beginning, 1 == end) |
리턴 | void |
protected ScrollListTo_Internal ( float pos ) : void | ||
pos | float | |
리턴 | void |
public SetInputDelegate ( EZInputDelegate del ) : void | ||
del | EZInputDelegate | |
리턴 | void |
public SetSelectedItem ( int index ) : void | ||
index | int | The zero-based index of the item. |
리턴 | void |
public SetValueChangedDelegate ( EZValueChangedDelegate del ) : void | ||
del | EZValueChangedDelegate | |
리턴 | void |
protected UpdateContentExtents ( float change ) : void | ||
change | float | |
리턴 | void |
protected EZValueChangedDelegate changeDelegate | ||
리턴 | EZValueChangedDelegate |