docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method AddStartingInteractionOverride

    AddStartingInteractionOverride(Object, Object)

    Adds overrideGroupMember to the list of Group members that are to be added as interaction overrides for sourceGroupMember on Awake. Both objects must already be included in the startingGroupMembers list. The override object should implement either the IXRSelectInteractor interface or the IXRInteractionOverrideGroup interface.

    Declaration
    public void AddStartingInteractionOverride(Object sourceGroupMember, Object overrideGroupMember)
    Parameters
    Type Name Description
    Object sourceGroupMember

    The Group member whose interaction can be potentially overridden by overrideGroupMember.

    Object overrideGroupMember

    The Group member to add as a possible interaction override.

    Remarks

    Use AddInteractionOverrideForGroupMember(IXRGroupMember, IXRGroupMember) to add to the interaction overrides used after Awake.

    See Also
    RemoveStartingInteractionOverride(Object, Object)
    AddInteractionOverrideForGroupMember(IXRGroupMember, IXRGroupMember)
    In This Article
    Back to top
    Copyright © 2023 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)