#Saving

9 messages · Page 1 of 1 (latest)

ocean coyote
#

I their any other way to save then player prefs and json cause I want to clone a prefab with different things on this script on the prefab using code in a built project cause I can not use Unity Editor Either

uneven barn
#

There's C#'s BinaryFormatter class. Also, can you further clarify what exactly you're trying to save, here?

lofty mauve
#

There is also CSV or Comma Separated Values.

ripe flame
# ocean coyote I their any other way to save then player prefs and json cause I want to clone a...

Unless I misunderstood your question, I believe you can just call instantiate and pass in the existing instance and it will instantiate a new one with the same script values as the instance. Either way you shouldn't need to save to playerprefs to copy values at runtime; You can just store them in memory.
The only time you'd need to save values externally is if you need them to persist across sessions.

spiral matrix
#

You can also compress and convert to binary

#

in order to make your files more safe

#

For unity use .NET STANDARD 2.1 API ( if unity is 2018 or older)