Class Draggable | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class Draggable

    Inheritance
    System.Object
    Draggable
    Namespace: UnityEditor.Experimental.U2D.Layout
    Syntax
    public class Draggable : MouseManipulator

    Constructors

    Draggable(Boolean)

    Declaration
    public Draggable(bool clampToParentEdges = false)
    Parameters
    Type Name Description
    System.Boolean clampToParentEdges

    Fields

    m_Active

    Declaration
    protected bool m_Active
    Field Value
    Type Description
    System.Boolean

    Properties

    clampToParentEdges

    Declaration
    public bool clampToParentEdges { get; set; }
    Property Value
    Type Description
    System.Boolean

    panSpeed

    Declaration
    public Vector2 panSpeed { get; set; }
    Property Value
    Type Description
    Vector2

    Methods

    CalculatePosition(Single, Single, Single, Single)

    Declaration
    protected Rect CalculatePosition(float x, float y, float width, float height)
    Parameters
    Type Name Description
    System.Single x
    System.Single y
    System.Single width
    System.Single height
    Returns
    Type Description
    Rect

    OnMouseDown(MouseDownEvent)

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

    OnMouseMove(MouseMoveEvent)

    Declaration
    protected void OnMouseMove(MouseMoveEvent e)
    Parameters
    Type Name Description
    MouseMoveEvent e

    OnMouseUp(MouseUpEvent)

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

    RegisterCallbacksOnTarget()

    Declaration
    protected override void RegisterCallbacksOnTarget()

    UnregisterCallbacksFromTarget()

    Declaration
    protected override void 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