16-10-2018, 08:00 AM
(This post was last modified: 16-10-2018, 08:02 AM by josemendez.)
(15-10-2018, 09:19 PM)rebeck14 Wrote: Hey guys -- Thanks for your help with an earlier post about obi-fluid. I'm now having issues with Obi-rope. We initially created an Obi-rope asset that worked both in the editor as well as in a build (Windows 10 64-bit). At some point in our development, this Obi-rope asset would only appear in the editor, but, when when we would make a build, it would no longer appear. My thought was that the obi-rope asset was getting corrupted somehow, so I rebuilt my Obi-rope asset from scratch and it seemed to have fixed the issue...
Unfortunately, after a couple days of running this build (that has not changed, to our knowledge, at all) we're seeing the same disappearing behavior. Any thoughts what would cause this?
My team has been using git for version control and we were curious about learning how the Obi-rope asset is stored in memory. If you have any ideas, please let us know. THANKS!
++j
Hi there,
When you talk about ObiRope as an "asset", what exactly are you referring to? ropes aren't assets but objects. See:
https://unity3d.com/es/learn/tutorials/t...ialization
As all objects, ropes are serialized by Unity along with the rest of the scene they live in. We're not performing custom serialization or anything like that, since ropes are basically a bunch of arrays. It's all up to Unity's built-in serialization system.
Make sure all assets that you need to include in the build are referenced in your scene though. Getting assets by name inside a script will not make Unity include them in the build unless they're directly referenced by an object (i.e. attached to a slot in the object's inspector).
cheers,