I want to repeat a image as the background of the canvas using code, How do I do this?
What do you need the array for? Why do this in code versus using the UI components? If it’s just for practice and learning purposes, you may want to learn about how the UI works a bit more first.
1 Like
I’d do this with a RawImage object. It allows you to specify the UV coordinates used; assuming your texture is set to Wrap rather than Clamp, you just set your UV coordinates to cover a large range (like 0-10) to get many repeats of the texture in one UI object.
1 Like
I want to change the background to other things than the array and im not sure how i could do that with only UI