Hi
I’m new in coding and Unity.
As title, i made a tool in editor which can save some data (like list<>) for object.
But when i in play mode, the data i save will disappear.
Most of the tools can do this definitely.
So I tried to use playerprefs to make data translated between editor and iphone.
Playerprefs worked in editor perfectly. But when i bulided , the data can’t transfer between editor and iphone.
Is there any method can save the data in editor and can be used on iphone?
Thanks
Hmm…
It seems like this can be done with [Serializefield] .
What are you trying to do? Playerprefs isn’t going to work because playerprefs are stored on the device. In the case of editor, it’s saved somewhere on the pc/mac. Then you’d have a new set on the iphone. So, depends on what you are trying to do. It could be as simple as saving data into a text file, json, xml, etc and storing it in resources. Just depends.
1 Like
Thanks for the reply.
The simple way is as you say to save data into file and keep it.
Another way is to use [Serializefield] as a temporary data.
Because the data i want to save is some setting information, Serializefield is the good method.