02-02-2023, 08:05 AM
(02-02-2023, 02:12 AM)JooKitOoz Wrote: Anyone knows how to save/load Obi Ropes?
I'm making a game where I need to put cables on some objects that are interactable by the player, and then save it's position when the player dies. I'm using Save is Easy ( https://assetstore.unity.com/packages/to...easy-57432 ) to manage the game save/load, but for the cables made with Obi Rope they come back on their original position and shape (detached form the object previously moved) but no longer work or react to physics.
K
Hi there!
Ropes are just regular GameObjects, they are saved/loaded the same way: write/read transform values and any public component values. The only caveat is that they must have a ObiSolver up there hierarchy, and that the solver must be included in a ObiUpdater (usually, a ObiFixedUpdater) in order to be updated when appropriate.
I'd suggest to make sure the setup after loading the rope follows this.
kind regards,