docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Class XRHoverInteractableExtensions

    Extension methods for IXRHoverInteractable.

    Inheritance
    object
    XRHoverInteractableExtensions
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: UnityEngine.XR.Interaction.Toolkit
    Assembly: solution.dll
    Syntax
    public static class XRHoverInteractableExtensions

    Methods

    Name Description
    GetOldestInteractorHovering(IXRHoverInteractable)

    Gets the oldest interactor currently hovering on this interactable. This is a convenience method for when the interactable does not support being hovered by multiple interactors at a time.

    IsHoveredByLeft(IXRHoverInteractable)

    Gets whether the interactable is currently being hovered by an interactor associated with the left hand or controller.

    IsHoveredByRight(IXRHoverInteractable)

    Gets whether the interactable is currently being hovered by an interactor associated with the right hand or controller.

    See Also

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