SetPixels32() Width and Height?

Hey, im quite not sure how this SetPixels32() function works. Lets say i have a texture with size of 32x32. And I have seperate texture with a size of 10x10. If i were to take pixels with GetPixels32 from a texture of size 10x10 and put it straight on a texture with size 32x32 it wouldnt work. Both textures have to be the same size in order for this to work.

Isnt it just taking plane 2D array? How does SetPixels32() function even work? It should just put it from left to right, bottom to top but it seems that it puts it in some different way.
Why isnt different sizes working?

-Thanks!:slight_smile:

Do you have some example code that’s not working?

If you’re setting a 32x32 texture, you’ll need to supply a 32 x 32 = 1024 element Color32 array. In that array, element 0 will be at the lower left, element 1023 will be at the upper right, and element 66 will be the pixel two to the right and two above the lower left.

No, in that case you just specify the width/height of the block you want to set and the x/y position for where it should be located within the larger texture.

–Eric