r/UnityAssets • u/Unlikely-Ad2518 • 14d ago
Editor Extensions | $18.00 Spire C#: Compile-time checked exhaustive switch for enums/classes/interfaces; Ligthweight (no heap allocation!) struct-based discriminated/tagged unions with support for Inspector serialization, Burst compiler, JSon conversion, and more.
https://assetstore.unity.com/packages/tools/spire-c-exhaustive-matching-and-discriminated-tagged-unions-6893155Spire gives each enum variant its own typed data. Its analyzer reports missing switch cases, provides IDE quick fixes to generate the branches, and more.
You can also add exhaustiveness checking to existing enums, classes, and interfaces with [EnforceExhaustiveness].
2
Upvotes