docs.unity.cn
    Show / Hide Table of Contents

    Enum VectorUtils.Alignment

    The alignement of the sprite, to determine the location of the pivot.

    Namespace: Unity.VectorGraphics
    Syntax
    public enum Alignment

    Fields

    Name Description Value
    Center

    Center alignment.


    0
    TopLeft

    Top-left alignment.


    1
    TopCenter

    Top-center alignment.


    2
    TopRight

    Top-right alignment.


    3
    LeftCenter

    Left-center alignment.


    4
    RightCenter

    Right-center alignment.


    5
    BottomLeft

    Bottom-left alignment.


    6
    BottomCenter

    Bottom-center alignment.


    7
    BottomRight

    Bottom-right alignment.


    8
    Custom

    Custom alignment.


    Uses a custom alignment that will be used when building the sprite using the BuildSprite(List<VectorUtils.Geometry>, Single, VectorUtils.Alignment, Vector2, UInt16, Boolean) method.

    9
    SVGOrigin

    SVG origin alignment.


    This will use the origin of the SVG document as the origin of the sprite.

    10
    Back to top Copyright © 2023 Unity Technologies
    Generated by DocFX
    on Wednesday, April 19, 2023
    Terms of use