Unable to access UnityEditor.ProBuilder namespace in my own Editor scripts

I have a script in an Editor folder, where I attempt to reference UnityEditor.ProBuilder, but it fails with:

The type or namespace name 'ProBuilder' does not exist in the namespace 'UnityEditor'

I managed to get around this by creating an asmdef, that itself references UnityEditor.ProBuilder.asmdef.

Is this the expected way of doing things? Could not find a documentation about this anywhere…

Yes, that is the expected path as of ProBuilder 4.0.5. The next update (4.1.0) makes ProBuilder an automatically referenced assembly, so this will no longer be necessary.

1 Like