How do you set the values of an array to another without affecting the original array?
float[] baseArray = new float[] {1, 2, 3, 4};
float[] newArray = baseArray;
newArray[0] = 5;
print(newArray[0]);
print(baseArray[0]);
It outputs 5 twice but I want the base array to remain unaffected and output 1. How would I assign the newArray by value instead of by reference?