docs.unity3d.com
    Show / Hide Table of Contents

    Class Clickable

    Clickable Manipulator, used on Button elements.

    Inheritance
    Object
    Manipulator
    MouseManipulator
    PointerManipulator
    Clickable
    Clickable
    Inherited Members
    Clickable.RegisterCallbacksOnTarget()
    Clickable.UnregisterCallbacksFromTarget()
    Clickable.OnMouseDown(MouseDownEvent)
    Clickable.OnMouseMove(MouseMoveEvent)
    Clickable.OnMouseUp(MouseUpEvent)
    Clickable.Invoke(EventBase)
    Clickable.ProcessDownEvent(EventBase, Vector2, Int32)
    Clickable.ProcessUpEvent(EventBase, Vector2, Int32)
    Clickable.ProcessCancelEvent(EventBase, Int32)
    Clickable.active
    Clickable.lastMousePosition
    UnityEngine.UIElements.Clickable.clickedWithEventInfo
    UnityEngine.UIElements.Clickable.clicked
    PointerManipulator.CanStartManipulation(IPointerEvent)
    PointerManipulator.CanStopManipulation(IPointerEvent)
    MouseManipulator.CanStartManipulation(IMouseEvent)
    MouseManipulator.CanStopManipulation(IMouseEvent)
    MouseManipulator.activators
    Manipulator.target
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.AppUI.UI
    Syntax
    public class Clickable : Clickable, IManipulator

    Constructors

    Clickable(Action)

    Constructor.

    Declaration
    public Clickable(Action handler)
    Parameters
    Type Name Description
    Action handler

    The handler to invoke when the click event is triggered.

    Clickable(Action, Int64, Int64)

    Constructor.

    Declaration
    public Clickable(Action handler, long delay, long interval)
    Parameters
    Type Name Description
    Action handler

    The handler to invoke when the click event is triggered.

    Int64 delay

    The delay before the first click event is triggered.

    Int64 interval

    The interval between two click events.

    Clickable(Action<EventBase>)

    Constructor.

    Declaration
    public Clickable(Action<EventBase> handler)
    Parameters
    Type Name Description
    Action<EventBase> handler

    The handler to invoke when the click event is triggered.

    Methods

    ForceActivePseudoState()

    Force the active pseudo state on the target element.

    Declaration
    public void ForceActivePseudoState()

    ProcessMoveEvent(EventBase, Vector2)

    This method processes the move event sent to the target Element.

    Declaration
    protected override void ProcessMoveEvent(EventBase evt, Vector2 localPosition)
    Parameters
    Type Name Description
    EventBase evt

    The base event to process.

    Vector2 localPosition

    The local position of the pointer.

    Overrides
    Clickable.ProcessMoveEvent(EventBase, Vector2)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023