Obi Official Forum
Can't remove ObiTetherConstraints (Script) because ObiRope etc - Printable Version

+- Obi Official Forum (https://obi.virtualmethodstudio.com/forum)
+-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html)
+--- Forum: Obi Rope (https://obi.virtualmethodstudio.com/forum/forum-4.html)
+--- Thread: Can't remove ObiTetherConstraints (Script) because ObiRope etc (/thread-984.html)



Can't remove ObiTetherConstraints (Script) because ObiRope etc - ra001 - 17-03-2019

Hi.
I using Unity 2019.1 beta and Obi Rope v. 4.0.2

Ropes working fine, but when exit from unity play mode (in unity editor) I always get error about removing some ropes components, on all ropes. Of course I dont try remove any thing from rope gameobject.

[Image: b6d92beaf3d7124096ac8306d51867b7.png]


RE: Can't remove ObiTetherConstraints (Script) because ObiRope etc - josemendez - 19-03-2019

(17-03-2019, 10:41 AM)ra001 Wrote: Hi.
I using Unity 2019.1 beta and Obi Rope v. 4.0.2

Ropes working fine, but when exit from unity play mode (in unity editor) I always get error about removing some ropes components, on all ropes. Of course I dont try remove any thing from rope gameobject.

[Image: b6d92beaf3d7124096ac8306d51867b7.png]

Hi there,

Unfortunately we cannot reproduce this in 2018.x.

The constraint components are removed in the rope's OnDestroy(), which should be called by Unity after the rope component has been removed from the object. Either this is a bug in Unity (calling OnDestroy before the component has actually been destroyed) or some non-documented intentional change in their object lifecycle behavior. Will try it in the beta and report back.