Posted August 06, 2019 by T Studio Games
This was hard, realy hard.
For the saving you have to save a lot of things in open world
games.
Position, inventory, each pick up you took, position all wepons what you picked up
and then threw it away.(This was the hardes).
So I started and I could save just: floats(0.1 etc.), ints(1,2 etc.), strings("Hi" etc.), bools(true etc).
So position was array of 3 floats: float pos[x,y,z]
For pick ups I had an big array of bools what were true(taken) or false(not taken).
For the wepon It was hard I tried a lot of thing.
I won't write here what these things were because it will be to long.
Solution was to save it to a scriptable object like Vector3[] and make from it
a fill and then make it again scriptable object.
This took me a lot of time.
Thanks for reading.
Good luck.