Accessing to ProBuilderMesh component in a build

Hello. After project building I found that ProBuilderMesh component does not exist in any object. When I work in Editor mode all is fine. But in a build all ProBuilderMesh references are nulls and I can’t work with it’s API because the component magically destroys at start.
I was trying Unity 19.1.0f2 and 19.2.0a9, ProBuilder 4.0.4 and 4.1.0_prewiew.1 — identical results.

Is it a bug or normal situation?

Hi there! You’ll need to open the ProBuilder Preferences and un-check “Strip ProBuilder Scripts on Build”. That should do it! :slight_smile:

It works!
Thank you.

1 Like