Click or drag to resize

Item Class

A parent class for UI elements that wish to display data.
Inheritance Hierarchy
SystemObject
  Object
    Component
      Behaviour
        MonoBehaviour
          Kit.UIItem
            Kit.Modding.UIModItem

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

The Item type exposes the following members.

Properties
  NameDescription
Public propertyData
Gets or sets element data. Calls Refresh when setting so the UI updates.
Public propertyIndex
Gets or sets the transform index. Useful to re-order if the element is a part of a layout.
Top
Methods
  NameDescription
Public methodRefresh
Method that gets called when Data is updated. Child classes should override this method and update the UI here.
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