title: How to serialize a Vector3 using binary serializer?
body: <p>I am trying to serialize a class which consist of vectors. So, some error pops up when trying to fix that kind of thing. So, I need help how to serialize a vector. Shall I have to convert that into float and serialize and later deserialize that float and retrieve on transform. If yes how?</p>
  
  <pre><code>       BinaryFormatter bf = new BinaryFormatter();
         BallData ball = new BallData();
         ball.velocity = usergivenvelocity;
         ball.initialposition = position;
         FileStream file = File.Create(Application.persistentdatapath + "/Level_" + levelnumber.ToString() + ".dat");
         bf.Serialize(file,ball);
  </code></pre>