How do I access check the 2D checkbox in the graph through code?

I can’t seem to find the 2D bool in the gridgraph. Also how would I turn on 2D physics through code?

Hi

In the beta I have added a property to do this a lot more intuitively, but setting the rotation is what makes it 2D:

gridGraph.rotation = new Vector3(-90, 270, 90);