docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class PointerEventExtensions

    Extensions for UI-Toolkit PointerEvent

    Inheritance
    object
    PointerEventExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.AppUI.UI
    Assembly: Unity.AppUI.dll
    Syntax
    public static class PointerEventExtensions

    Methods

    IsContextClick<T>(PointerEventBase<T>)

    Check if the event is a context click

    Declaration
    public static bool IsContextClick<T>(this PointerEventBase<T> evt) where T : PointerEventBase<T>, new()
    Parameters
    Type Name Description
    PointerEventBase<T> evt

    The pointer event

    Returns
    Type Description
    bool

    True if the event is a context click

    Type Parameters
    Name Description
    T

    The type of the pointer event

    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)