简体   繁体   中英

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). I am using unity 2017.4.3, Unity 2019.3.6 and Unity 2020 latest version as well. It runs normally in editor but when I tried to make build or stand-alone exe, It gives me these errors. 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?)

在此处输入图片说明 在此处输入图片说明

It has been solved finally. The solution is: SabreCSG are using scripting command "RUNTIME_CSG" for build.

在此处输入图片说明

Because I am using SabreCSG plugin through scripting, so I need to define Scripting symbol in Player Settings. Goto Player Settings >> Other Settings >> Define Scripting Symbol and Add scripting symbol " RUNTIME_CSG " will solve this issue

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM