NGUI: Next-Gen UI kit  3.5.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros
UIEventListener Class Reference

Event Hook class lets you easily add remote event listener functions to an object. Example usage: UIEventListener.Get(gameObject).onClick += MyClickFunction; More...

Inheritance diagram for UIEventListener:

Public Member Functions

delegate void VoidDelegate (GameObject go)
 
delegate void BoolDelegate (GameObject go, bool state)
 
delegate void FloatDelegate (GameObject go, float delta)
 
delegate void VectorDelegate (GameObject go, Vector2 delta)
 
delegate void ObjectDelegate (GameObject go, GameObject draggedObject)
 
delegate void KeyCodeDelegate (GameObject go, KeyCode key)
 

Static Public Member Functions

static UIEventListener Get (GameObject go)
 Get or add an event listener to the specified game object. More...
 

Public Attributes

object parameter
 
VoidDelegate onSubmit
 
VoidDelegate onClick
 
VoidDelegate onDoubleClick
 
BoolDelegate onHover
 
BoolDelegate onPress
 
BoolDelegate onSelect
 
FloatDelegate onScroll
 
VectorDelegate onDrag
 
ObjectDelegate onDrop
 
KeyCodeDelegate onKey
 

Detailed Description

Event Hook class lets you easily add remote event listener functions to an object. Example usage: UIEventListener.Get(gameObject).onClick += MyClickFunction;

Member Function Documentation

delegate void UIEventListener.BoolDelegate ( GameObject  go,
bool  state 
)
delegate void UIEventListener.FloatDelegate ( GameObject  go,
float  delta 
)
static UIEventListener UIEventListener.Get ( GameObject  go)
static

Get or add an event listener to the specified game object.

delegate void UIEventListener.KeyCodeDelegate ( GameObject  go,
KeyCode  key 
)
delegate void UIEventListener.ObjectDelegate ( GameObject  go,
GameObject  draggedObject 
)
delegate void UIEventListener.VectorDelegate ( GameObject  go,
Vector2  delta 
)
delegate void UIEventListener.VoidDelegate ( GameObject  go)

Member Data Documentation

VoidDelegate UIEventListener.onClick
VoidDelegate UIEventListener.onDoubleClick
VectorDelegate UIEventListener.onDrag
ObjectDelegate UIEventListener.onDrop
BoolDelegate UIEventListener.onHover
KeyCodeDelegate UIEventListener.onKey
BoolDelegate UIEventListener.onPress
FloatDelegate UIEventListener.onScroll
BoolDelegate UIEventListener.onSelect
VoidDelegate UIEventListener.onSubmit
object UIEventListener.parameter

The documentation for this class was generated from the following file: