Hello, I’m having problems using the UnityEngine.Probuilder namespace after starting an empty project, using the package manager to download probuilder 4 and copying the following code into a script in the Assets folder.
ProBuilderMesh quad = ProBuilderMesh.Create(
new Vector3[] {
new Vector3(0f, 0f, 0f),
new Vector3(1f, 0f, 0f),
new Vector3(0f, 1f, 0f),
new Vector3(1f, 1f, 0f)
},
new Face[] { new Face(new int[] { 0, 1, 2, 1, 3, 2 } )
} );
The problem is that it doesnt find the probuilder namespace
The code is taken from this page of the docs About the ProBuilder Scripting API | Package Manager UI website.
I can clearly see the probuilder package in the packages folder of my project. What am I doing wrong?
Thank you for your consideration and any help you might provide