Class BaseRegistrationEventArgs
Event data associated with a registration event with an XRInteraction
Inherited Members
Namespace: UnityEngine .XR.Interaction.Toolkit
Assembly: Unity.XR.Interaction.Toolkit.dll
Syntax
public abstract class BaseRegistrationEventArgs
Remarks
This class is currently used to define the event args for the registration events supported by the XRInteraction
This abstract class can be used to define custom events that register some type of object with a custom extension of the XRInteraction
Examples
The following example demonstrates the implementation of the Interactor
public partial class InteractorRegisteredEventArgs : BaseRegistrationEventArgs
{
/// <summary>
/// The Interactor that was registered.
/// </summary>
public IXRInteractor interactorObject { get; set; }
/// <summary>
/// The Interaction Group that contains the registered Interactor. Will be <see langword="null"/> if there is no containing Group.
/// </summary>
public IXRInteractionGroup containingGroupObject { get; set; }
}
Properties
manager
The Interaction Manager associated with the registration event.
Declaration
public XRInteractionManager manager { get; set; }
Property Value
Type | Description |
---|---|
XRInteraction |