csharp
public readonly record struct SpriteAppearanceHow one sprite is drawn: the parts that are not the sprite itself.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
Unmanaged on purpose, so that it lives in the renderer's per-object arrays beside every other feature's data rather than in a dictionary of its own — see RenderDataHolder.
Fields and properties (6)
public Color4 ColourWhat to multiply the sample by.
public Vector2 SizeHow big to draw it in world units, or zero for the size it was authored at.
public SpriteFill FillWhat the stretchable parts do.
public SpriteFlip FlipWhich way round it is drawn.
public bool HollowCentreWhether a nine-slice leaves its middle undrawn.
public uint SortGroupWhere this sprite sits in painting order, for a stage that sorts ByGroup.
Used by (4)
- SpriteGeometryVixen.Rendering
- SpriteRenderFeatureVixen.Rendering
- SpriteRenderFeatureTestsVixen.Rendering.Tests
- SpriteTestsVixen.Rendering.Tests