- Code: Select all
#if UNITY_3_4
[AddComponentMenu("Game/Whatever")]
#endif
public class Whatever: MonoBehaviour
{
}
I wrote some stub classes to get this to compile on the server without the preprocessor check, but the code scan fails with this:
- error: AddComponentMenu..ctor(...) uses the non-allowed method: System.Void System.Attribute
The real solution would be to pull out my shared code into its own class so I don't have to worry about this, but I'm super lazy
-D