我在写一些统一模块。
#if !THIS_MODULE
#define THIS_MODULE
#endif
#if !REQUIRED_MODULE
#error This Module requires the RequiredModule module
#error Please get it from "https://example.com"
#endif
如果缺少所需的模块,则只需按预期在Unity3D控制台中打印第一行即可
error CS1029: #error: 'This Module requires the RequiredModule module'
error CS1029: #error: 'Please get it from "https:'
如何使用
#error
Unity中的预处理器?