Is there a way to throw an error at build-time from a MonoBehaviour (wrong configuration for example) so that the Game can’t be launched?
#if 0
#endif
So the game shouldn’t be build-able on a specific platform, for instance? You could just put some non-compilable code in an #if block. For example:
#if UNITY_IPHONE
NoBuildingOnIPhone;
#endif
That line should throw an “unknown identifier” error, and provide the reason.