Class PublisherUtils.LeftClickManipulator | WebGL Publisher | 4.1.1
docs.unity3d.com
    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
    Inherited Members
    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.Play.Publisher.Editor
    Syntax
    public class 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()
    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