Plush

SpriteBorder#

PlushEngine · Type index

Namespace: PlushEngine

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#

PropertyTypeAccessConstructor default
Leftintget; init;required
Topintget; init;required
Rightintget; init;required
Bottomintget; init;required

Members: IsEmpty

IsEmpty#

public bool IsEmpty { get; }

Source#