Obi Official Forum
Bug / Crash Removing Cloth Component - Printable Version

+- Obi Official Forum (https://obi.virtualmethodstudio.com/forum)
+-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html)
+--- Forum: Obi Cloth (https://obi.virtualmethodstudio.com/forum/forum-2.html)
+--- Thread: Bug / Crash Removing Cloth Component (/thread-646.html)



Removing Cloth Component - jaleopold - 11-08-2018

When a cloth component is removed from a piece of skinned geometry it makes the mesh disappear with no apparent way to bring it back. The node is still there with the mesh renderer enabled, but its invisible.


RE: Removing Cloth Component - josemendez - 16-08-2018

(11-08-2018, 01:17 AM)jaleopold Wrote: When a cloth component is removed from a piece of skinned geometry it makes the mesh disappear with no apparent way to bring it back. The node is still there with the mesh renderer enabled, but its invisible.

Note that this is not a bug but a side effect of Obi's overriding of Unity's skinning system: when you add a ObiCloth component to an object, the mesh is assumed to be the one used to generate the topology. If the topology is null or empty at the time of removing the ObiCloth component, then the SkinnedMeshRenderer's mesh will be set to null.

Quote:with no apparent way to bring it back
Simply reassign the mesh to the SkinnedMeshRenderer's "Mesh" property manually in the inspector, or through code.