Answers for "unity vector3 to array"


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]);
Posted by: Guest on March-30-2020

unity easy convert vector3 to vector2

Vector3 v3 =;
Vector2 v2 = v3;
Posted by: Guest on October-02-2020

C# Answers by Framework

Browse Popular Code Answers by Language