Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Accessing to ProBuilderMesh component in a build

Discussion in 'World Building' started by NikoSkakun, Apr 17, 2019.

  1. NikoSkakun

    NikoSkakun

    Joined:
    May 8, 2018
    Posts:
    7
    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?
     
  2. gabrielw_unity

    gabrielw_unity

    Unity Technologies

    Joined:
    Feb 19, 2018
    Posts:
    963
    Hi there! You'll need to open the ProBuilder Preferences and un-check "Strip ProBuilder Scripts on Build". That should do it! :)
     
  3. NikoSkakun

    NikoSkakun

    Joined:
    May 8, 2018
    Posts:
    7
    It works!
    Thank you.
     
    gabrielw_unity likes this.