docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Stroke

    Defines how strokes should be rendered.

    Inheritance
    object
    Stroke
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.VectorGraphics
    Assembly: Unity.VectorGraphics.dll
    Syntax
    public class Stroke

    Properties

    Color

    The stroke color.

    Declaration
    public Color Color { get; set; }
    Property Value
    Type Description
    Color

    Fill

    The stroke fill.

    Declaration
    public IFill Fill { get; set; }
    Property Value
    Type Description
    IFill

    FillTransform

    A transformation specific to the fill.

    Declaration
    public Matrix2D FillTransform { get; set; }
    Property Value
    Type Description
    Matrix2D

    HalfThickness

    The stroke half-thickness.

    Declaration
    public float HalfThickness { get; set; }
    Property Value
    Type Description
    float

    Pattern

    The stroke pattern (dashes).

    Declaration
    public float[] Pattern { get; set; }
    Property Value
    Type Description
    float[]
    Remarks

    Even entries mark a fill and odd entries mark void

    PatternOffset

    An offset to where the pattern should start.

    Declaration
    public float PatternOffset { get; set; }
    Property Value
    Type Description
    float

    TippedCornerLimit

    How far the tipped corners may extrude.

    Declaration
    public float TippedCornerLimit { get; set; }
    Property Value
    Type Description
    float
    In This Article
    Back to top
    Copyright © 2024 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)