- Home /
Question by
jrrosales · Dec 28, 2016 at 01:36 PM ·
gameobjectobjectdestroystatedestroygameobject
how to save destroyed state of an object
i am making a hidden object game where the user clicks the items then the items go to an inventory... the problem i have is when i click the object then change state then go back to the scene it is there again.. example: i click on the note then the note is saved in my inventory, then i go to the next room to find objects.. then i return to the scene where i found the note.. when the scene of the note loads, the note is there again.. how can i save the destroyed state of an object?
Comment
Answer by tanoshimi · Dec 28, 2016 at 01:37 PM
There's lots of possible ways - here's a good introduction to some of them: https://unity3d.com/learn/tutorials/topics/scripting/persistence-saving-and-loading-data