unity vector3 to array
Vector3 vector = new Vector3(0,1,0);
// Convert to float array
floats[] toFloat = new float[]{vector.x,vector.y,vector.z};
// Back to vector
vector = new Vector3 (toFloat[1], toFloat[2], toFloat[3]);
0
0
Vector3 v3 = Vector3.one;
Vector2 v2 = v3;
Thank you!
0
0
Are there any code examples left?
New code examples in category C#