docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Class XRSelectFilterDelegate

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

    Inheritance
    object
    XRSelectFilterDelegate
    Implements
    IXRSelectFilter
    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 XRSelectFilterDelegate : IXRSelectFilter

    Constructors

    Name Description
    XRSelectFilterDelegate(Func<IXRSelectInteractor, IXRSelectInteractable, bool>)

    Creates a new select filter delegate.

    Properties

    Name Description
    canProcess

    Whether this select filter can process interactions. Select filters that can process interactions receive calls to Process(IXRSelectInteractor, IXRSelectInteractable), select filters that cannot process do not.

    delegateToProcess

    The delegate to be invoked when processing this filter.

    Methods

    Name Description
    Process(IXRSelectInteractor, IXRSelectInteractable)

    Called by the host object (XRInteractionManager, XRBaseInteractor or XRBaseInteractable) to verify if the select interaction between the given Interactor and Interactable can be performed.

    See Also

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