Class uiPath | UIWidgets | 1.5.4-preview.12
docs.unity3d.com
    Show / Hide Table of Contents

    Class uiPath

    Inheritance
    Object
    PoolObject
    uiPath
    Inherited Members
    PoolObject.activated_flag
    PoolObject.setup()
    Namespace: Unity.UIWidgets.ui
    Syntax
    public class uiPath : PoolObject

    Constructors

    uiPath()

    Declaration
    public uiPath()

    Fields

    needCache

    Declaration
    public bool needCache
    Field Value
    Type Description
    Boolean

    pathKey

    Declaration
    public uint pathKey
    Field Value
    Type Description
    UInt32

    Properties

    isCircle

    Declaration
    public bool isCircle { get; }
    Property Value
    Type Description
    Boolean

    isNaiveRRect

    Declaration
    public bool isNaiveRRect { get; }
    Property Value
    Type Description
    Boolean

    isRect

    Declaration
    public bool isRect { get; }
    Property Value
    Type Description
    Boolean

    rRectCorner

    Declaration
    public float rRectCorner { get; }
    Property Value
    Type Description
    Single

    shapeHint

    Declaration
    public uiPath.uiPathShapeHint shapeHint { get; }
    Property Value
    Type Description
    uiPath.uiPathShapeHint

    Methods

    addCircle(Single, Single, Single)

    Declaration
    public void addCircle(float cx, float cy, float r)
    Parameters
    Type Name Description
    Single cx
    Single cy
    Single r

    addEllipse(Single, Single, Single, Single)

    Declaration
    public void addEllipse(float cx, float cy, float rx, float ry)
    Parameters
    Type Name Description
    Single cx
    Single cy
    Single rx
    Single ry

    addRect(Rect)

    Declaration
    public void addRect(Rect rect)
    Parameters
    Type Name Description
    Rect rect

    addRect(uiRect)

    Declaration
    public void addRect(uiRect rect)
    Parameters
    Type Name Description
    uiRect rect

    addRRect(RRect)

    Declaration
    public void addRRect(RRect rrect)
    Parameters
    Type Name Description
    RRect rrect

    arcTo(Rect, Single, Single, Boolean)

    Declaration
    public void arcTo(Rect rect, float startAngle, float sweepAngle, bool forceMoveTo = true)
    Parameters
    Type Name Description
    Rect rect
    Single startAngle
    Single sweepAngle
    Boolean forceMoveTo

    clear()

    Declaration
    public override void clear()
    Overrides
    PoolObject.clear()

    close()

    Declaration
    public void close()

    create(Int32)

    Declaration
    public static uiPath create(int capacity = 128)
    Parameters
    Type Name Description
    Int32 capacity
    Returns
    Type Description
    uiPath

    fromPath(Path)

    Declaration
    public static uiPath fromPath(Path path)
    Parameters
    Type Name Description
    Path path
    Returns
    Type Description
    uiPath

    getBounds()

    Declaration
    public uiRect getBounds()
    Returns
    Type Description
    uiRect

    getBoundsWithMargin(Single)

    Declaration
    public uiRect getBoundsWithMargin(float margin)
    Parameters
    Type Name Description
    Single margin
    Returns
    Type Description
    uiRect

    lineTo(Single, Single)

    Declaration
    public void lineTo(float x, float y)
    Parameters
    Type Name Description
    Single x
    Single y

    moveTo(Single, Single)

    Declaration
    public void moveTo(float x, float y)
    Parameters
    Type Name Description
    Single x
    Single y

    winding(PathWinding)

    Declaration
    public void winding(PathWinding dir)
    Parameters
    Type Name Description
    PathWinding dir
    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