Click or drag to resize

ItemList Class

Creates UI elements for a list of items. Instantiates an instance of Item for each one specified.
Inheritance Hierarchy
SystemObject
  Object
    Component
      Behaviour
        MonoBehaviour
          Kit.UIItemList
            Kit.UIObjectList

Namespace:  Kit.UI
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0
Syntax
C#
public class ItemList : MonoBehaviour
Request Example View Source

The ItemList type exposes the following members.

Properties
  NameDescription
Public propertyCount
Returns the total number of UI elements.
Public propertyData
Set a list of items and create UI elements for them, or get the list of items for which the elements were created.
Public propertyItem
Returns the UI element at a particular index, or if index is out-of-bounds.
Top
Methods
  NameDescription
Public methodClear
Destroys all children.
Public methodGetFirstItem
Returns the first UI element.
Public methodGetFirstItemT
Returns the first UI element.
Public methodGetItem(Int32)
Returns the UI element at a particular index.
Public methodGetItemT(Int32)
Returns the UI element at a particular index, or if index is out-of-bounds.
Public methodGetItems
Returns the list of UI elements.
Public methodGetItemsT
Returns the list of UI elements.
Public methodGetLastItem
Returns the last UI element.
Public methodGetLastItemT
Returns the last UI element.
Public methodIndexOf
Returns the index of a particular UI element, or -1 if not found.
Public methodIsValid
Returns whether a particular index is out-of-range for elements created.
Public methodRefresh
Destroys children and creates UI elements based on the Data property.
Top
Fields
  NameDescription
Public fieldPrefab
The prefab to use for instantiating UI elements.
Top
Extension Methods
  NameDescription
Public Extension MethodDestroy
Destroy the object.
(Defined by UnityObjectExtensions.)
Public Extension MethodDisable
Set the enabled property to .
(Defined by BehaviourExtensions.)
Public Extension MethodEnable
Set the enabled property to .
(Defined by BehaviourExtensions.)
Public Extension MethodGetBounds

Returns the bounds of the Component.

(Defined by ComponentExtensions.)
Public Extension MethodIsPrefab
Returns whether the Component is a part of a prefab.
(Defined by ComponentExtensions.)
Top
See Also