- Home /
Question by
prajwalg8736 · Jun 03, 2020 at 11:43 AM ·
script.problem during runtimefaces4.1extrude
Im trying to extrude faces of a GameObject using ProBuiler in runtime using the following code , but its not working, is there any other solution for this?
ProBuilderMesh pb =gameObject.GetComponent<ProBuilderMesh>();
pb.ToMesh();
pb.Refresh(RefreshMask.Normals);
pb.Extrude(pb.faces, ExtrudeMethod.IndividualFaces, 1f);
pb.SetSelectedFaces(pb.faces);
Comment