[英]SabreCSG in Unity3D can't make build (error CS0246: The type or namespace name '***' could not be found)
I have tried in several ways (even created empty project and installed sabreCSG in my unity).我尝试了多种方式(甚至创建了空项目并在我的 unity 中安装了 sabreCSG)。 I am using unity 2017.4.3, Unity 2019.3.6 and Unity 2020 latest version as well.
我也在使用 Unity 2017.4.3、Unity 2019.3.6 和 Unity 2020 最新版本。 It runs normally in editor but when I tried to make build or stand-alone exe, It gives me these errors.
它在编辑器中正常运行,但是当我尝试制作构建或独立 exe 时,它给了我这些错误。 Where is mistake?
错在哪里? My player settings are also normal
我的播放器设置也正常
error CS0246: The type or namespace name '***' could not be found (are you missing a using directive or an assembly reference?)错误 CS0246:找不到类型或命名空间名称“***”(您是否缺少 using 指令或程序集引用?)
It has been solved finally.终于解决了。 The solution is: SabreCSG are using scripting command "RUNTIME_CSG" for build.
解决方案是:SabreCSG 使用脚本命令“RUNTIME_CSG”进行构建。
Because I am using SabreCSG plugin through scripting, so I need to define Scripting symbol in Player Settings.因为我通过脚本使用SabreCSG插件,所以我需要在播放器设置中定义脚本符号。 Goto Player Settings >> Other Settings >> Define Scripting Symbol and Add scripting symbol " RUNTIME_CSG " will solve this issue
转到播放器设置>>其他设置>>定义脚本符号并添加脚本符号“ RUNTIME_CSG ”将解决此问题
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.