Y
Y
yraiv2020-05-13 14:05:00
Unity
yraiv, 2020-05-13 14:05:00

How to save data from prefabs?

I read about saving, serialization and player prefs, but it's not that. I have a prefab that I need to save data to. Then I just make a copy of it and for this copy I have to change the public data in the inspector + a picture (for example, hp, damage, etc.). How to make a save for this? I did it through player prefs, but it saves everything under one, then you have to do different scripts, how can you save everything using 1 script?
So that I can throw the second, third, etc. prefabs, change the data and they are saved and do not overwrite each other

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DanielMcRon, 2020-05-13
@DanielMcRon

Why not make it public, static. To be one and for all

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question