Platform & Define Compile Matrix Guard
Compile every reachable platform and define path without switching build target, then pinpoint each broken condition, assembly, and platform.
by Kevin Bjorvand
Price History +
Conditional code can stay broken for months because the active editor compiles only one platform and define set. Platform & Define Compile Matrix Guard reads the paths your project can reach, plans a bounded matrix, and compiles them with Unity's own compiler before the release branch exposes the problem.
What it helps you do
- Read asmdefs, define constraints, platform filters, C# preprocessor conditions, and package versions.
- Build a small covering matrix instead of testing every theoretical combination.
- Compile each configuration with Unity's Roslyn toolchain without switching the active build target.
- Name the exact condition, assembly, platform, defines, file, and compiler error.
- Detect impossible asmdef constraints, undefined symbols, and code paths no reachable configuration can compile.
- Cache clean cells, split the matrix into CI shards, and merge deterministic evidence.
- Export JSON, Markdown, and self-contained HTML reports.
Use it when platform-only code breaks late, feature defines multiply, asmdef constraints become hard to reason about, or one CI job cannot afford the whole matrix.
The tool compiles; it does not build, link, run, or certify a player. A clean matrix proves the planned compile cells passed, not that every possible define combination or platform runtime is correct.
Read the complete documentation.