Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

ScriptibleObject values Reset when Building Game to Desktop

Discussion in 'Editor & General Support' started by Maniczombie, Apr 19, 2017.

  1. Maniczombie

    Maniczombie

    Joined:
    Oct 19, 2012
    Posts:
    15
    So I'm making a food menu app with ScriptableObject Pages and Food Items.
    Pages contain links to other pages or food items.

    The problem occurs when ever I build the apk and save it to the desktop. The lists in the Pages will reset for both the Unity Editor and the exported apk game. If I save the apk to the root of the C or D drives then the Editor will keep the values but the apk game will not display the page as if the ScriptibleObject is still forgetting its values.

    Has anyone else come across this before or know of a fix?

    Using Unity Version 5.5.1f1 Personal 64bit
     
  2. Maniczombie

    Maniczombie

    Joined:
    Oct 19, 2012
    Posts:
    15
    Found out what what causing it, though it doesn't explain why it only triggered depending on where I saved the file.
    Had a Awake function refreshing the lists which as they were scriptableobjects, was not triggering in play mode but for some reason triggered on building the game? Very odd.