Question by
CharlesDeep · Aug 28, 2018 at 08:23 PM ·
scripting problemnullreferenceexceptionserializationasset bundle
Script works in editor but when the game loads an asset bundle with it, all the serialized data is lost.
I am modding a game. This game accepts community content, like "worlds". I've made a mod to add movement to lights.
Everything is OK in the editor, but when the world is packaged into an asset bundle (the editor.log says it targets editor:editor) and loaded into the game, all the serialized data, you know, everything the gameobject had configured in the script is lost. Everything. Every variable that depended in data set in the editor is lost, all fields.
Why is this happening? I can provide logs or something else if anyone needs it to answer. Thanks.
I'm using Unity 5.6.3p1.
Comment
Your answer
Follow this Question
Related Questions
Space Shooter Score Text NullReference error 3 Answers
Pathfindingscript NullReference error 0 Answers