Hello,
I have an enum StatusInfo which I’m creating through Code Generation, and using in a couple of other scripts.
The issue is that, when the StatusInfo enum doesn’t exist, the scripts which depend on it will fail to compile.
So what I want is to somehow create a fallback.cs file (or something), that checks if statusinfo.cs exists. If it does, fallback.cs should be ignored for compilation (or else there’ll be the issue of two classes with the same name), but if statusinfo.cs doesn’t exist fallback.cs should be compiled (to avoid compiler errors for missing definitions).
Does anyone know of any way I can accomplish this?
Thanks in advance
alright thanks. I think this is super useful
– kranasangel