docs.unity.cn
    Show / Hide Table of Contents

    Enum Corner

    Corner mode that defines how corners are handled when generating SpriteShape geometry.

    Namespace: UnityEngine.U2D
    Syntax
    public enum Corner

    Fields

    Name Description Value
    Disable

    No corners.


    0
    Automatic

    Automatically use respective corner sprite if 1) angle is within range 2) control point and neighbours are in linear tangent mode and their heights are same.


    1
    Stretched

    The sprite at this control point is used to create a curved corner.


    2
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Monday, September 4, 2023