docs.unity.cn
    Show / Hide Table of Contents

    Class Drawer

    Inheritance
    Object
    Drawer
    Namespace: UnityEditor.U2D.Path
    Syntax
    public class Drawer : object, IDrawer

    Methods

    DrawBezier(Vector3, Vector3, Vector3, Vector3, Single, Color)

    Declaration
    public void DrawBezier(Vector3 p1, Vector3 p2, Vector3 p3, Vector3 p4, float width, Color color)
    Parameters
    Type Name Description
    Vector3 p1
    Vector3 p2
    Vector3 p3
    Vector3 p4
    Single width
    Color color
    Implements
    IDrawer.DrawBezier(Vector3, Vector3, Vector3, Vector3, Single, Color)

    DrawCreatePointPreview(Vector3)

    Declaration
    public void DrawCreatePointPreview(Vector3 position)
    Parameters
    Type Name Description
    Vector3 position
    Implements
    IDrawer.DrawCreatePointPreview(Vector3)

    DrawLine(Vector3, Vector3, Single, Color)

    Declaration
    public void DrawLine(Vector3 p1, Vector3 p2, float width, Color color)
    Parameters
    Type Name Description
    Vector3 p1
    Vector3 p2
    Single width
    Color color
    Implements
    IDrawer.DrawLine(Vector3, Vector3, Single, Color)

    DrawPoint(Vector3)

    Declaration
    public void DrawPoint(Vector3 position)
    Parameters
    Type Name Description
    Vector3 position
    Implements
    IDrawer.DrawPoint(Vector3)

    DrawPointHovered(Vector3)

    Declaration
    public void DrawPointHovered(Vector3 position)
    Parameters
    Type Name Description
    Vector3 position
    Implements
    IDrawer.DrawPointHovered(Vector3)

    DrawPointSelected(Vector3)

    Declaration
    public void DrawPointSelected(Vector3 position)
    Parameters
    Type Name Description
    Vector3 position
    Implements
    IDrawer.DrawPointSelected(Vector3)

    DrawTangent(Vector3, Vector3)

    Declaration
    public void DrawTangent(Vector3 position, Vector3 tangent)
    Parameters
    Type Name Description
    Vector3 position
    Vector3 tangent
    Implements
    IDrawer.DrawTangent(Vector3, Vector3)
    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Tuesday, March 1, 2022
    Terms of use