r/UnityAssets • • 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-6893155

Spire 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

0 comments sorted by