📜  unity vector3 到数组 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:10.253000             🧑  作者: Mango

代码示例1
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]);