docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Class XRInteractionStrengthFilterDelegate

    An interaction strength filter that forwards its processing to a delegate (delegateToProcess). Useful to create custom filters by code without needing to create new classes.

    Inheritance
    object
    XRInteractionStrengthFilterDelegate
    Implements
    IXRInteractionStrengthFilter
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    Namespace: UnityEngine.XR.Interaction.Toolkit.Filtering
    Assembly: solution.dll
    Syntax
    public sealed class XRInteractionStrengthFilterDelegate : IXRInteractionStrengthFilter

    Constructors

    Name Description
    XRInteractionStrengthFilterDelegate(Func<IXRInteractor, IXRInteractable, float, float>)

    Creates a new interaction strength filter delegate.

    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.

    delegateToProcess

    The delegate to be invoked when processing this filter.

    Methods

    Name Description
    Process(IXRInteractor, IXRInteractable, float)

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

    See Also

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