Click or drag to resize

Slot Class

A UI element that can hold an Item inside it.
Inheritance Hierarchy
SystemObject
  Object
    Component
      Behaviour
        MonoBehaviour
          Kit.UISlot

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

The Slot type exposes the following members.

Properties
  NameDescription
Public propertyHasItem
Returns whether this slot is filled.
Public propertyItem
The Item fitted in this slot.
Top
Methods
  NameDescription
Public methodCanReceive
Decides whether this slot can receive a particular item. To be overriden in child classes.
Public methodClear
Clear this slot.
Public methodOnDrop
Public methodReceive
Fit an item into this slot.
Top
Fields
  NameDescription
Public fieldPrefab
The prefab to use for showing data in this slot.
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