docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Interface IXRActivateInteractor

    An interface that represents an Interactor component that can activate an Interactable component. Not to be confused with the active state of a GameObject, an activate event in this context refers to a contextual command action, such as toggling a flashlight on and off.

    Inherited Members
    IXRInteractor.registered
    IXRInteractor.unregistered
    IXRInteractor.interactionLayers
    IXRInteractor.handedness
    IXRInteractor.transform
    IXRInteractor.GetAttachTransform(IXRInteractable)
    IXRInteractor.GetValidTargets(List<IXRInteractable>)
    IXRInteractor.OnRegistered(InteractorRegisteredEventArgs)
    IXRInteractor.OnUnregistered(InteractorUnregisteredEventArgs)
    IXRInteractor.PreprocessInteractor(XRInteractionUpdateOrder.UpdatePhase)
    IXRInteractor.ProcessInteractor(XRInteractionUpdateOrder.UpdatePhase)
    Namespace: UnityEngine.XR.Interaction.Toolkit
    Assembly: solution.dll
    Syntax
    public interface IXRActivateInteractor : IXRInteractor

    Properties

    Name Description
    shouldActivate

    (Read Only) Indicates whether this interactor is in a state where it should send the activate event this frame.

    shouldDeactivate

    (Read Only) Indicates whether this interactor is in a state where it should send the deactivate event this frame.

    Methods

    Name Description
    GetActivateTargets(List<IXRActivateInteractable>)

    Retrieve the list of Interactables that this Interactor could possibly activate or deactivate this frame.

    Extension Methods

    XRInteractorExtensions.IsBlockedByInteractionWithinGroup(IXRInteractor)

    See Also

    IXRActivateInteractable
    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)