IEventService
Event Service
Interface
This service provides alternative methods to subscribe to events, since the Creator Toolkit prohibits direct access events outside of the SpatialSDK namespace.
Spatial limits the ability to directly subscribe to C# events, UnityEvents, and to register callback functions. However, this is still possible using the utility methods in this service.
Methods
AddEventHandler(object, string, Delegate) | Adds |
AddStaticEventHandler(Type, string, Delegate) | Adds |
AddVisualScriptEventHandler<TArgs>(EventHook, Action<TArgs>) | |
RemoveEventHandler(object, string, Delegate) | Removes |
RemoveStaticEventHandler(Type, string, Delegate) | Removes |
RemoveVisualScriptEventHandler(EventHook, Delegate) | Adds |