Possible Duplicate:
Convert an array of different value types to a byte array
I have 6 floats and I need to put them in an array of floats and then convert them to bytes. here we go:
float x= g.transform.position.x;
float y= g.transform.position.y;
float z= g.transform.position.z;
float alpha = g.transform.rotation.eulerAngles.x;
float theta = g.transform.rotation.eulerAngles.y;
float phi = g.transform.rotation.eulerAngles.z;
What is the best way to convert an array of floats to a byte array?