Converting strings to vector3

Hey!

I’ve got a file saved with a bunch of vectors 3’s in it something like this

0 0 0 : 10 20 0 : 59 98 78:

I know how to separate the vectors that’s why the colons are there but how would I convert them back to vectors? or is there a better way to save them than in text files like some sort of .vector file?

You can use the JSON stuff in unity to save objects out to a text file, and load them back in.
If you desire to use your current solution, you’ll need to separate each component, use float.parse on each to get a float, and then create the vector object from those 3 floats.

ok thank you! @skalev