Class BaseEventSystem
Base Event System that can be inherited from to give other system features event capabilities.
Inheritance
BaseEventSystem
Assembly: cs.temp.dll.dll
public abstract class BaseEventSystem : BaseService, IMixedRealityEventSystem, IMixedRealityService, IDisposable
Fields
Declaration
public static bool enableDanglingHandlerDiagnostics
Field Value
Declaration
public static bool enableDanglingHandlerDiagnostics
Field Value
Properties
List of all event handlers grouped by type that are registered to this Event System.
Declaration
public Dictionary<Type, List<BaseEventSystem.EventHandlerEntry>> EventHandlersByType { get; }
Property Value
List of all event handlers grouped by type that are registered to this Event System.
Declaration
public Dictionary<Type, List<BaseEventSystem.EventHandlerEntry>> EventHandlersByType { get; }
Property Value
Declaration
public List<GameObject> EventListeners { get; }
Property Value
Type |
Description |
List<GameObject> |
|
Declaration
public List<GameObject> EventListeners { get; }
Property Value
Type |
Description |
List<GameObject> |
|
Methods
Declaration
public override void Destroy()
Overrides
Declaration
public override void Destroy()
Overrides
Declaration
public virtual void HandleEvent<T>(BaseEventData eventData, ExecuteEvents.EventFunction<T> eventHandler)
where T : IEventSystemHandler
Parameters
Type |
Name |
Description |
BaseEventData |
eventData |
|
ExecuteEvents.EventFunction<T> |
eventHandler |
|
Type Parameters
Declaration
public virtual void HandleEvent<T>(BaseEventData eventData, ExecuteEvents.EventFunction<T> eventHandler)
where T : IEventSystemHandler
Parameters
Type |
Name |
Description |
BaseEventData |
eventData |
|
ExecuteEvents.EventFunction<T> |
eventHandler |
|
Type Parameters
Declaration
public virtual void Register(GameObject listener)
Parameters
Type |
Name |
Description |
GameObject |
listener |
|
Declaration
public virtual void Register(GameObject listener)
Parameters
Type |
Name |
Description |
GameObject |
listener |
|
Declaration
public virtual void RegisterHandler<T>(IEventSystemHandler handler)
where T : IEventSystemHandler
Parameters
Type |
Name |
Description |
IEventSystemHandler |
handler |
|
Type Parameters
Declaration
public virtual void RegisterHandler<T>(IEventSystemHandler handler)
where T : IEventSystemHandler
Parameters
Type |
Name |
Description |
IEventSystemHandler |
handler |
|
Type Parameters
Declaration
public virtual void Unregister(GameObject listener)
Parameters
Type |
Name |
Description |
GameObject |
listener |
|
Declaration
public virtual void Unregister(GameObject listener)
Parameters
Type |
Name |
Description |
GameObject |
listener |
|
Declaration
public virtual void UnregisterHandler<T>(IEventSystemHandler handler)
where T : IEventSystemHandler
Parameters
Type |
Name |
Description |
IEventSystemHandler |
handler |
|
Type Parameters
Declaration
public virtual void UnregisterHandler<T>(IEventSystemHandler handler)
where T : IEventSystemHandler
Parameters
Type |
Name |
Description |
IEventSystemHandler |
handler |
|
Type Parameters
Implements
IDisposable