出于某些原因我把Enviro - Sky and Weather这个插件包删除然后重新导入,出现了一堆的错误。大概的情况就是:
出错的脚本都是预编译失效
#if 条件
内容
#end if
中间的 内容 应该是灰色的但在项目中不是。
百度了一下只看到一些预编译定义和用法的主题,无从下手,最后找到了Enviro - Sky and Weather官方论坛发起提问并得到了解决方案,直接上图得了。
按照回答把对应Scripting Define Symbols的内容里包含enviro的字段全部删除,再次重新导入这个插件,就没有出现那些错误了。
顺便了解一下Scripting Define Symbols宏定义的相关知识。