SpriteBorder#
Nine-slice borders of a sprite in source pixels. With pixels per unit set, a Sprite Renderer 2D keeps the corners at their pixel size and stretches only the middle when its quad is scaled.
public readonly record struct SpriteBorder(int Left, int Top, int Right, int Bottom)Record properties#
| Property | Type | Access | Constructor default |
|---|---|---|---|
Left | int | get; init; | required |
Top | int | get; init; | required |
Right | int | get; init; | required |
Bottom | int | get; init; | required |
Members: IsEmpty
IsEmpty#
public bool IsEmpty { get; }Source#
- RuntimeWorld.cs