docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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
    XRInteractionGroup
    XRBaseInteractor

    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
    XRInteractionGroup
    XRBaseInteractor

    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.

    See Also
    XRInteractionGroup
    XRBaseInteractor

    Extension Methods

    XRGroupMemberExtensions.GetTopLevelContainingGroup(IXRGroupMember)

    See Also

    XRInteractionGroup
    XRBaseInteractor
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)