InteractableEventRoute<S,T>.Register Method
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.
Overloads
| Name | Description |
|---|---|
| Register(IXRInteractable) |
Starts listening to events from an unregistered IXRInteractable. |
| Register(S, T) |
Add event handlers that will handle events from the |
Register(IXRInteractable)
Starts listening to events from an unregistered IXRInteractable.
public void Register(UnityEngine.XR.Interaction.Toolkit.IXRInteractable interactable);
abstract member Register : UnityEngine.XR.Interaction.Toolkit.IXRInteractable -> unit
override this.Register : UnityEngine.XR.Interaction.Toolkit.IXRInteractable -> unit
Public Sub Register (interactable As IXRInteractable)
Parameters
- interactable
- UnityEngine.XR.Interaction.Toolkit.IXRInteractable
The interactable to register. Events will start being handled by this IXRInteractableEventRoute.
Implements
Applies to
Register(S, T)
Add event handlers that will handle events from the source and direct them to the target.
protected abstract void Register(S source, T target);
abstract member Register : 'S * 'T -> unit
Protected MustOverride Sub Register (source As S, target As T)
Parameters
- source
- S
The source of the interactable events.
- target
- T
The target to handle the interactable events.