I’d like to insert an edge loop using the ProBuilder api in Unity 2018.2.8f1. There is a post on how to do this on the deprecated ProBuilder forums using the following code:
pb_Object pb = GetComponent<pb_Object>();
pb_Edge[] createdEdges;
// Connect is an extension method defined in pb_ConnectEdges.cs
// GetEdgeRing is an extension that fetches a edge rings for the passed edges
// On success Connect returns true and createdEdges contains the new edge loop
if( pb.Connect(pbMeshUtils.GetEdgeRing(pb, new pb_Edge[] { pb.faces[0].edges[0] }), out createdEdges) )
{
pb.ToMesh();
pb.Refresh();
}
However, pbMeshUtils no longer seems to exist, and I can’t find any mention of how to do GetEdgeRing now. How can I insert and Edge Loop using the Runtime API?