MonoBehaviour with event dispatching possibilities
You should extend this class

C# | Visual Basic | Visual C++ |
public class EventDispatcherComponent : MonoBehaviour, IEventDispatcher, IDisposable
Public Class EventDispatcherComponent _ Inherits MonoBehaviour _ Implements IEventDispatcher, IDisposable
public ref class EventDispatcherComponent : public MonoBehaviour, IEventDispatcher, IDisposable

All Members | Constructors | Methods | Properties | Fields | |
Icon | Member | Description |
---|---|---|
![]() | EventDispatcherComponent()()()() | Initializes a new instance of the EventDispatcherComponent class |
![]() | active | Obsolete. (Inherited from Component.) |
![]() | AddEventListener(String, EventHandler) |
Adds the event listener
|
![]() | AddEventListener(String, EventHandler, Int32) |
Adds the event listener
|
![]() | AddEventListener(String, EventHandler, EventPhase) |
Adds the event listener
|
![]() | AddEventListener(String, EventHandler, EventPhase, Int32) |
Adds the event listener
|
![]() | animation | (Inherited from Component.) |
![]() | audio | (Inherited from Component.) |
![]() | BroadcastMessage(String, Object, SendMessageOptions) | (Inherited from Component.) |
![]() | BroadcastMessage(String, Object) | (Inherited from Component.) |
![]() | BroadcastMessage(String) | (Inherited from Component.) |
![]() | BroadcastMessage(String, SendMessageOptions) | (Inherited from Component.) |
![]() | camera | (Inherited from Component.) |
![]() | CancelInvoke()()()() | (Inherited from MonoBehaviour.) |
![]() | CancelInvoke(String) | (Inherited from MonoBehaviour.) |
![]() | collider | (Inherited from Component.) |
![]() | collider2D | (Inherited from Component.) |
![]() | CompareTag(String) | (Inherited from Component.) |
![]() | constantForce | (Inherited from Component.) |
![]() | Default |
True for default
|
![]() | DispatchEvent(Event) |
Dispatches an event
|
![]() | DispatchEvent(Event, Boolean) |
Dispatches an event with an option for switching on delayed processing
|
![]() | Dispose()()()() |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
![]() | enabled | (Inherited from Behaviour.) |
![]() | Equals(Object) | (Inherited from Object.) |
![]() | Finalize()()()() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | gameObject | (Inherited from Component.) |
![]() ![]() | Get(String) |
Gets the mapped component
|
![]() | GetComponent(Type) | (Inherited from Component.) |
![]() | GetComponent``1()()()() | (Inherited from Component.) |
![]() | GetComponent(String) | (Inherited from Component.) |
![]() | GetComponentInChildren(Type) | (Inherited from Component.) |
![]() | GetComponentInChildren``1()()()() | (Inherited from Component.) |
![]() | GetComponents(Type) | (Inherited from Component.) |
![]() | GetComponents``1()()()() | (Inherited from Component.) |
![]() | GetComponentsInChildren(Type) | (Inherited from Component.) |
![]() | GetComponentsInChildren(Type, Boolean) | (Inherited from Component.) |
![]() | GetComponentsInChildren``1(Boolean) | (Inherited from Component.) |
![]() | GetComponentsInChildren``1()()()() | (Inherited from Component.) |
![]() ![]() | GetDefault()()()() |
Gets the default mapping
|
![]() | GetHashCode()()()() | (Inherited from Object.) |
![]() | GetInstanceID()()()() | (Inherited from Object.) |
![]() | GetType()()()() | Gets the type of the current instance. (Inherited from Object.) |
![]() ![]() | GetWithFallback(String) |
Gets the mapping specified with ID, or a default one
|
![]() | guiElement | Obsolete. (Inherited from Component.) |
![]() | guiText | (Inherited from Component.) |
![]() | guiTexture | (Inherited from Component.) |
![]() | HasBubblingEventListener(String) |
Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type.
This method returns true if an event listener is triggered during any phase of the event flow when an event of the specified type is dispatched to this EventDispatcher object or any of its descendants.
The difference between HasEventListener() and HasBubblingEventListener() is that HasEventListener() examines only the object to which it belongs, whereas HasBubblingEventListener() examines the entire event flow for the event specified by the type parameter.
|
![]() ![]() | HasDefault()()()() |
Returns true if default mapping exists
|
![]() | HasEventListener(String) |
Checks whether the EventDispatcher object has any listeners registered for a specific type of event.
|
![]() | hideFlags | (Inherited from Object.) |
![]() | hingeJoint | (Inherited from Component.) |
![]() | Id |
ID
|
![]() | Invoke(String, Single) | (Inherited from MonoBehaviour.) |
![]() | InvokeRepeating(String, Single, Single) | (Inherited from MonoBehaviour.) |
![]() | IsInvoking(String) | (Inherited from MonoBehaviour.) |
![]() | IsInvoking()()()() | (Inherited from MonoBehaviour.) |
![]() ![]() | IsMapping(String) |
Returns true if mapping with specified ID exists
|
![]() | light | (Inherited from Component.) |
![]() | MemberwiseClone()()()() | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | name | (Inherited from Object.) |
![]() | networkView | (Inherited from Component.) |
![]() | particleEmitter | (Inherited from Component.) |
![]() | particleSystem | (Inherited from Component.) |
![]() | RemoveAllListeners(String) |
Removes all event listeners of a certain type
|
![]() | RemoveEventListener(String, EventHandler) |
Removes the event listener
|
![]() | RemoveEventListener(String, EventHandler, EventPhase) |
Removes the event listener
|
![]() | renderer | (Inherited from Component.) |
![]() | rigidbody | (Inherited from Component.) |
![]() | rigidbody2D | (Inherited from Component.) |
![]() | SendMessage(String, Object, SendMessageOptions) | (Inherited from Component.) |
![]() | SendMessage(String, Object) | (Inherited from Component.) |
![]() | SendMessage(String) | (Inherited from Component.) |
![]() | SendMessage(String, SendMessageOptions) | (Inherited from Component.) |
![]() | SendMessageUpwards(String, Object, SendMessageOptions) | (Inherited from Component.) |
![]() | SendMessageUpwards(String, Object) | (Inherited from Component.) |
![]() | SendMessageUpwards(String) | (Inherited from Component.) |
![]() | SendMessageUpwards(String, SendMessageOptions) | (Inherited from Component.) |
![]() | StartCoroutine(IEnumerator) | (Inherited from MonoBehaviour.) |
![]() | StartCoroutine(String, Object) | (Inherited from MonoBehaviour.) |
![]() | StartCoroutine(String) | (Inherited from MonoBehaviour.) |
![]() | StartCoroutine_Auto(IEnumerator) | (Inherited from MonoBehaviour.) |
![]() | StopAllCoroutines()()()() | (Inherited from MonoBehaviour.) |
![]() | StopCoroutine(String) | (Inherited from MonoBehaviour.) |
![]() | tag | (Inherited from Component.) |
![]() | ToString()()()() | (Inherited from Object.) |
![]() | transform | (Inherited from Component.) |
![]() | useGUILayout | (Inherited from MonoBehaviour.) |

Object | |||||
![]() | Object | ||||
![]() | Component | ||||
![]() | Behaviour | ||||
![]() | MonoBehaviour | ||||
![]() | EventDispatcherComponent |