Hi all
Building project for WebGL, webpage crashes when creating a mesh with Probuilder at runtime. I’m finding this will crash it:
ProBuilderMesh _box;
// Start is called before the first frame update
void Start()
{
_box = ShapeGenerator.GeneratePlane(PivotLocation.Center, 0.6f, 0.2f, 0, 0, Axis.Forward);
}
browser console debug output:
NullReferenceException: Object reference not set to an instance of an object.
It runs fine on editor.
I’ve logged a bug report.
Does anyone have any suggestions to work around this?
Tested on Unity 2019.3.0f3, probuilder 4.2.1, URP 7.1.6, latest version chrome and firefox.
Thanks a bunch for your thoughts