12-15-2018, 03:59 PM
(This post was last modified: 12-15-2018, 04:19 PM by metroidsnes.)
I have the same problem (Curvy 4.1.1). Happenes only in build. I have a couple of scenes, first loaded as single, others additively. Two of those additive scenes have Curvy generators in them along with the _CurvyGlobal_ gameobject. Scenes that does not have generators does not have this GO as well.
My question is, in what situation should this error occur? How does the merging of the global managers work?
EDIT: When I load my main scene and all of the composite partial scenes in the editor, the _CurvyGlobal_ GOs from the partial scenes disappear and a new one is created in my main (active) scene. Then when I save my main scene it'll have a _CurvyGlobal_ GO even though it doesn't have any Curvy components in it. Is that the intended behaviour?
Aside from that, when I get the error in build, at the time I have two _CurvyGlobal_ GOs in the scenes. I logged also two instances of global manager merging which makes sense since there're total 3 _CurvyGlobal_ GOs in 3 different scenes. It appears to me that the error is caused by a CurvySpline (as is written in the stack trace) which tries to access _CurvyGlobal_ GO before the merging happenes.
My question is, in what situation should this error occur? How does the merging of the global managers work?
EDIT: When I load my main scene and all of the composite partial scenes in the editor, the _CurvyGlobal_ GOs from the partial scenes disappear and a new one is created in my main (active) scene. Then when I save my main scene it'll have a _CurvyGlobal_ GO even though it doesn't have any Curvy components in it. Is that the intended behaviour?
Aside from that, when I get the error in build, at the time I have two _CurvyGlobal_ GOs in the scenes. I logged also two instances of global manager merging which makes sense since there're total 3 _CurvyGlobal_ GOs in 3 different scenes. It appears to me that the error is caused by a CurvySpline (as is written in the stack trace) which tries to access _CurvyGlobal_ GO before the merging happenes.