SabreCSG in Unity3D can't make build (error CS0246: The type or namespace name '***' could not be found)

242 views Asked by At

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?)

enter image description here enter image description here

1

There are 1 answers

0
USMANHEART On BEST ANSWER

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

enter image description here

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

enter image description here