07-02-2019, 11:31 AM
(This post was last modified: 07-02-2019, 11:31 AM by josemendez.)
Here's it, turned out to be simpler than expected.
Replace ObiEditorUtils.cs and ObiRopeEditor.cs with the ones I'm providing. Then, a new button "Bake Mesh" in the ObiRope inspector will appear below the "Initialize" button. Upon clicking it, Unity will ask you for a folder to save the mesh to. Then you can use this mesh in any scene as a regular static mesh.
Only works with ObiRopeExtrudedMeshRenderer and ObiRopeMeshRenderer (since ObiRopeLineRenderer is view-dependent and ObiRopeChainRenderer is made up of static meshes).
This functionality will be included in ObiRope,ObiCloth and ObiSoftbody in the next update.
Replace ObiEditorUtils.cs and ObiRopeEditor.cs with the ones I'm providing. Then, a new button "Bake Mesh" in the ObiRope inspector will appear below the "Initialize" button. Upon clicking it, Unity will ask you for a folder to save the mesh to. Then you can use this mesh in any scene as a regular static mesh.
Only works with ObiRopeExtrudedMeshRenderer and ObiRopeMeshRenderer (since ObiRopeLineRenderer is view-dependent and ObiRopeChainRenderer is made up of static meshes).
This functionality will be included in ObiRope,ObiCloth and ObiSoftbody in the next update.