Welcome, Guest! Login | Register
Keeping inventory data on scene change
Info
Report
40 Posts

Hello everyone,
I figured out a way to have a quite simple inventory where you have always the same objects and the only thing changes is the their quantity (almost like tlou). Didn't completely script it but I think it should work.
Now, I really don't know how to maintain this data while moving to another scene.
How can I do this?

Thx in advance.
Created on: 4 months ago
Info
Report
208 Posts

Add DontDestroyOnLoad () in the Awake or Start method on the script that's holding the data
Created on: 4 months ago
Edited on: 4 months ago
Info
Report
40 Posts

Thank you very much!
Created on: 4 months ago
Reply
Preview
Post
Or use the advanced reply form here...
Sponsored