Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经尝试了几种方法(甚至在我的统一中创建了空项目并安装了 sabreCSG)。我也在使用 unity 2017.4.3、Unity 2019.3.6 和 Unity 2020 最新版本。它在编辑器中正常运行,但是当我尝试制作构建或独立 exe 时,它给了我这些错误。错在哪里?我的播放器设置也正常
错误 CS0246:找不到类型或命名空间名称“***”(您是否缺少 using 指令或程序集引用?)
终于解决了。解决方案是:SabreCSG 正在使用脚本命令“RUNTIME_CSG”进行构建。
因为我是通过脚本使用 SabreCSG 插件,所以我需要在 Player Settings 中定义 Scripting symbol。转到播放器设置>>其他设置>>定义脚本符号 并添加脚本符号“ RUNTIME_CSG ”将解决此问题