InteractableEventRouter Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A Unity component that is capable of routing child events to other child and parent target objects that contain a IXRInteractableEventRouteTarget component.
[UnityEngine.AddComponentMenu("MRTK/Core/Interactable Event Router")]
public class InteractableEventRouter : UnityEngine.MonoBehaviour
[<UnityEngine.AddComponentMenu("MRTK/Core/Interactable Event Router")>]
type InteractableEventRouter = class
inherit MonoBehaviour
Public Class InteractableEventRouter
Inherits MonoBehaviour
- Inheritance
-
UnityEngine.MonoBehaviourInteractableEventRouter
- Attributes
-
UnityEngine.AddComponentMenuAttribute
Remarks
This is an experimental feature. This class is early in the cycle, it has been labeled as experimental to indicate that it is still evolving, and subject to change over time. Parts of the MRTK, such as this class, appear to have a lot of value even if the details haven't fully been fleshed out. For these types of features, we want the community to see them and get value out of them early enough so to provide feedback.
Constructors
| Name | Description |
|---|---|
| InteractableEventRouter() | |
Methods
| Name | Description |
|---|---|
| AddEventRoute<T>() |
Add the given event route type if not in the current set of routes. |
| OnDisable() |
A Unity event function that is called when the script component has been disabled. |
| OnEnable() |
A Unity event function that is called when the script component has been enabled. |
| OnTransformChildrenChanged() |
Callback sent to the object after a Transform children change occurs. |
| Refresh() |
Re-query for the list of child IXRInteractableEventRouteTarget components, and hook-up event handlers to these child objects. |
| RemoveEventRoute<T>() |
Remove the given event route type if in the current set of routes. |