docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Interface IXRActivateInteractable

    An interface that represents an Interactable component which Interactor components can activate. 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
    IXRInteractable.registered
    IXRInteractable.unregistered
    IXRInteractable.interactionLayers
    IXRInteractable.colliders
    IXRInteractable.transform
    IXRInteractable.GetAttachTransform(IXRInteractor)
    IXRInteractable.OnRegistered(InteractableRegisteredEventArgs)
    IXRInteractable.OnUnregistered(InteractableUnregisteredEventArgs)
    IXRInteractable.ProcessInteractable(XRInteractionUpdateOrder.UpdatePhase)
    IXRInteractable.GetDistanceSqrToInteractor(IXRInteractor)
    Namespace: UnityEngine.XR.Interaction.Toolkit
    Assembly: solution.dll
    Syntax
    public interface IXRActivateInteractable : IXRInteractable

    Properties

    Name Description
    activated

    The event that is called when the selecting Interactor activates this Interactable.

    deactivated

    The event that is called when an Interactor deactivates this Interactable.

    Methods

    Name Description
    OnActivated(ActivateEventArgs)

    This method is called when the Interactor begins an activation event on this Interactable.

    OnDeactivated(DeactivateEventArgs)

    This method is called when the Interactor ends an activation event on this Interactable.

    See Also

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