Interface IXRGroupMember
An interface that represents an object that can be contained as a member in an IXRInteractionGroup. A Group member can be either an Interactor or another Group. Only one member in a Group can perform interaction at a time.
Namespace: UnityEngine.XR.Interaction.Toolkit.Interactors
Assembly: Unity.XR.Interaction.Toolkit.dll
Syntax
[MovedFrom("UnityEngine.XR.Interaction.Toolkit")]
public interface IXRGroupMember
Remarks
Implementations of this interface must also implement either IXRInteractor or IXRInteractionGroup to be functional within the Group.
Properties
containingGroup
The Interaction Group that contains this member.
Declaration
IXRInteractionGroup containingGroup { get; }
Property Value
Type | Description |
---|---|
IXRInteractionGroup |
See Also
Methods
OnRegisteringAsGroupMember(IXRInteractionGroup)
An IXRInteractionGroup calls this method just after this member has been added to the Group's list or just after the Group has registered with the XRInteractionManager. This method is called just before the member is re-registered with the Interaction Manager so that it can be registered as being part of a Group.
Declaration
void OnRegisteringAsGroupMember(IXRInteractionGroup group)
Parameters
Type | Name | Description |
---|---|---|
IXRInteractionGroup | group | The Interaction Group that this member is now a part of. |
Remarks
Implementations of this method should ensure that containingGroup returns group
after this method is called.
See Also
OnRegisteringAsNonGroupMember()
An IXRInteractionGroup calls this method just after this member has been removed from the Group's list or before the Group unregisters with the XRInteractionManager. This method is called just before the member is re-registered with the Interaction Manager so that it can be registered as being not part of a Group.
Declaration
void OnRegisteringAsNonGroupMember()
Remarks
Implementations of this method should ensure that containingGroup returns null after this method is called.