Struct Sprite2DBorder | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Struct Sprite2DBorder

    Modifier component. Add alongside a Sprite2D to add a border. The border is used for sliced tiling modes

    Namespace: Unity.Tiny.Core2D
    Syntax
    public struct Sprite2DBorder : IComponentData

    Fields

    bottomLeft

    Bottom left slice inset point, normalized [0..1] to sprite (not image) Defaults to (0,0) for no border.

    Declaration
    public float2 bottomLeft
    Field Value
    Type Description
    float2

    topRight

    Top right slice inset point, normalized [0..1] to sprite (not image) Defaults to (1,1) for no border.

    Declaration
    public float2 topRight
    Field Value
    Type Description
    float2

    Properties

    Default

    Declaration
    public static Sprite2DBorder Default { get; }
    Property Value
    Type Description
    Sprite2DBorder
    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