Question about saving

Hi guys !

I’m very beginner with unity and i started a 2d game where you can have a farm. My question is : How can i save data like where he placed his vegeatables, since when, what npc did he talked too etc. I’m doing a sort of rpg farming game.

I saw we can use PlayerPrefs to store a few variables, but i’m not sur i can use this in my case.

And also, the player create some game object like tree or house he built, i need to save that too.

I know we can use Serialisation, but is it possible to save where the prefabs where made ? And in that case, it mean i need a script who create them again when loading the map?

My problem is more about thoose gameobjects than saving basic info like his inventory(in a .json) or his level.

Thanks for your help and sorry for my english x)

You can use either method, serialization or PlayerPrefs. Both work in all ways. Although serialization can hold more types of data etc. It is slightly harder to use. I myself only use PlayerPrefs.