docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class PublisherUtils.LeftClickManipulator

    Represents a MouseManipulator that allows a visual element to react when left clicked

    Inheritance
    object
    Manipulator
    MouseManipulator
    PublisherUtils.LeftClickManipulator
    Implements
    IManipulator
    Inherited Members
    MouseManipulator.CanStartManipulation(IMouseEvent)
    MouseManipulator.CanStopManipulation(IMouseEvent)
    MouseManipulator.activators
    Manipulator.target
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Play.Publisher.Editor
    Assembly: Unity.Play.Publisher.Editor.dll
    Syntax
    public class PublisherUtils.LeftClickManipulator : MouseManipulator, IManipulator

    Constructors

    LeftClickManipulator(Action<VisualElement>)

    Initializes and returns an instance of LeftClickManipulator.

    Declaration
    public LeftClickManipulator(Action<VisualElement> OnClick)
    Parameters
    Type Name Description
    Action<VisualElement> OnClick

    The default callback that will be triggered when the element is clicked

    Methods

    OnMouseDown(MouseDownEvent)

    Called when the mouse is clicked on the target, when the user starts pressing the button

    Declaration
    protected void OnMouseDown(MouseDownEvent e)
    Parameters
    Type Name Description
    MouseDownEvent e

    OnMouseUp(MouseUpEvent)

    Called when the mouse is clicked on the target, when the user stops pressing the button

    Declaration
    protected void OnMouseUp(MouseUpEvent e)
    Parameters
    Type Name Description
    MouseUpEvent e

    RegisterCallbacksOnTarget()

    Registers the callbacks on the target

    Declaration
    protected override void RegisterCallbacksOnTarget()
    Overrides
    Manipulator.RegisterCallbacksOnTarget()

    UnregisterCallbacksFromTarget()

    Unregisters the callbacks on the target

    Declaration
    protected override void UnregisterCallbacksFromTarget()
    Overrides
    Manipulator.UnregisterCallbacksFromTarget()

    Implements

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