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 |