Good Afternoon, How can i convert a vector3 to vector 2. Getting the vector3 and setting it to vector2 value.
public Vector3[] test;
public Vector2[] test2;
void Start(){
test2 = test; // does not work with an array//
}
Thanks
Good Afternoon, How can i convert a vector3 to vector 2. Getting the vector3 and setting it to vector2 value.
public Vector3[] test;
public Vector2[] test2;
void Start(){
test2 = test; // does not work with an array//
}
Thanks
you can do it in a for loop; go through every item in test, convert it to vector2 and put it in test2