简体   繁体   English

Unity3D 中的 SabreCSG 无法进行构建(错误 CS0246:找不到类型或命名空间名称“***”)

[英]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.

相关问题 Unity 3d 错误 CS0246:找不到类型或命名空间名称“ParticleEmitter” - Unity 3d error CS0246: The type or namespace name 'ParticleEmitter' could not be found 错误 CS0246:找不到类型或命名空间名称“KustoConnectionStringBuilder” - error CS0246: The type or namespace name 'KustoConnectionStringBuilder' could not be found 错误CS0246:找不到类型或命名空间名称“AssemblyFileVersion” - Error CS0246: The type or namespace name 'AssemblyFileVersion' could not be found 错误 CS0246:找不到类型或命名空间名称“Newtonsoft” - Error CS0246: The type or namespace name 'Newtonsoft' could not be found 错误 CS0246:找不到类型或命名空间名称“CsvHelper” - error CS0246: The type or namespace name 'CsvHelper' could not be found 错误 CS0246:找不到类型或命名空间名称“IApplicationBuilderExtensions” - error CS0246: The type or namespace name 'IApplicationBuilderExtensions' could not be found 错误 CS0246:找不到类型或命名空间名称“PlayerMotor” - error CS0246: The type or namespace name 'PlayerMotor' could not be found 错误CS0246:找不到类型或名称空间名称“ HtmlAgilityPack” - Error CS0246: The type or namespace name `HtmlAgilityPack' could not be found 错误 CS0246:找不到类型或命名空间名称“UnityEngine” - error CS0246: The type or namespace name 'UnityEngine' could not be found 错误CS0246:找不到类型或名称空间名称'WebDriverWait'? - Error CS0246: The type or namespace name 'WebDriverWait' could not be found?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM