I want to combine 2 arrays together to create 1 big one but i have no idea what the value of both of these arrays will be.
how can i approach this?
what do you mean the value? You don’t know what you are going to store in them? or you don’t know the size
size
Its not that hard…just make a new array the size of the 2 of them together. Then fill the new giant array with the first 2 arrays.
In C#, its even easier by creating a list, using the AddRange method to add the arrays to the list, then to get the new giant array, just use the ToArray() method.
Every Unity language can use List.
well i did this but it said could not find method Texture2D[ ].Add
why is this (this is javascript)
while(secondTexture.Length + 28 > thisColor.Length){
thisColor.Add(secondTexture[o]);
o++;
}