docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Interface IXRInteractionStrengthFilter

    Instances that implement this interface are called interaction strength filters. Interaction strength filters are used to adjust or set the interaction strength between an Interactor and Interactable.

    Namespace: UnityEngine.XR.Interaction.Toolkit.Filtering
    Assembly: solution.dll
    Syntax
    public interface IXRInteractionStrengthFilter
    Remarks

    Add an interaction strength filter to the following objects to extend its interaction strength computation:

    • XRBaseInteractable: to add an Interactable interaction strength filter used to modify interaction strength in the Interactable for a hovering or selecting Interactor.

    Properties

    Name Description
    canProcess

    Whether this interaction strength filter can process. Interaction strength filters that can process receive calls to Process(IXRInteractor, IXRInteractable, float), interaction strength filters that cannot process do not.

    Methods

    Name Description
    Process(IXRInteractor, IXRInteractable, float)

    Called by the host object (XRBaseInteractable) to calculate the interaction strength between the given Interactor and Interactable.

    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)