docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IXRInteractionStrengthInteractor

    An interface that represents an Interactor component which can express an interaction strength amount, which is a normalized value [0.0, 1.0] that describes the strength of selection.

    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.Interactors
    Assembly: Unity.XR.Interaction.Toolkit.dll
    Syntax
    [MovedFrom("UnityEngine.XR.Interaction.Toolkit")]
    public interface IXRInteractionStrengthInteractor : IXRInteractor
    Remarks

    For interactors that use motion controller input, this is typically based on the analog trigger or grip press amount. It can also be based on a poke amount for how deep a poke interactor has pressed into an interactable.

    Properties

    largestInteractionStrength

    The largest interaction strength value of all interactables this interactor is hovering or selecting.

    Declaration
    IReadOnlyBindableVariable<float> largestInteractionStrength { get; }
    Property Value
    Type Description
    IReadOnlyBindableVariable<float>
    See Also
    IXRInteractionStrengthInteractable

    Methods

    GetInteractionStrength(IXRInteractable)

    Gets the interaction strength between the given interactable and this interactor.

    Declaration
    float GetInteractionStrength(IXRInteractable interactable)
    Parameters
    Type Name Description
    IXRInteractable interactable

    The specific interactable to get the interaction strength between.

    Returns
    Type Description
    float

    Returns a value [0.0, 1.0] of the interaction strength.

    See Also
    IXRInteractionStrengthInteractable

    ProcessInteractionStrength(UpdatePhase)

    The XRInteractionManager calls this method to signal to update the interaction strength.

    Declaration
    void ProcessInteractionStrength(XRInteractionUpdateOrder.UpdatePhase updatePhase)
    Parameters
    Type Name Description
    XRInteractionUpdateOrder.UpdatePhase updatePhase

    The update phase during which this method is called.

    See Also
    XRInteractionUpdateOrder.UpdatePhase

    Extension Methods

    XRInteractorExtensions.IsBlockedByInteractionWithinGroup(IXRInteractor)

    See Also

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