You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Assembly Definitions for code outside of the `MixedRealityToolkit/_Core` folder.
10
16
* This ensures features are self-contained and have no dependencies to other features.
17
+
* This only applies to `MixedRealityToolkit` folder.
11
18
* Be defined using an interface found in `MixedRealityToolkit/_Core/definitions/<FeatureName>System`.
12
19
* A feature's concrete manager implementation should inherit directly from `BaseManager` or `MixedRealityEventManager` if they will raise events.
13
20
* A feature's concrete manager implementation should setup and verify scene is ready for that system to use in `Initialize`.
@@ -20,6 +27,21 @@ Features must have the following:
20
27
* A default configuration profile located in `MixedRealityToolkit-SDK/Profiles` and be assigned in the default configuration profile for the Mixed Reality Manager
21
28
* If this feature is **not** a core feature, then it must be registered using the component configuration profile and implement `IMixedRealityComponent`.
22
29
* Have a default implementation located in `MixedRealityToolkit-SDK/Features/<FeatureName>`
30
+
* Events that can be raised with the system should be defined in the interface, with all the required parameters for initializing the event data.
31
+
32
+
## Event Data Implementation Requirements
33
+
The EventData defines exactly what data the handler is expected to receive from the event.
34
+
35
+
* All EventDatum for the feature should be defined in `MixedRealityToolkit/_Core/EventDatum/<FeatureName>`.
36
+
* All new Event Data classes should inherit from `GenericBaseEventData`
37
+
38
+
## Handler Implementation Requirements
39
+
40
+
The HandLer Interface defines each event a component should be listening for and the types of data passed. End users will implement the interface to execute logic based on the event data received.
41
+
42
+
* Handler interfaces should be defined in `MixedRealityToolkit/_Core/Interfaces/<FeatureName>System/Handlers`.
43
+
* Handler interfaces should inherit from `UnityEngine.EventSystems.IEventSystemHandler`
44
+
* Opt-in by default. To receive events from the system, the handler will need to register itself with the system to receive those events.
0 commit comments