UI ImageRectOffset or ImageRectOffset

I need some help on my UI I have a game made fully of UI and I want to make a quiz with questions in a grid pattern and I don’t know have to make the grid work.

Problem


Questions Image

Hi, you can achieve this by replacing your current image with a frame and inserting the same image in the frame but this time scaling it properly and setting it’s ScaleType to Fit. Then you can just move the image up and down.

1 Like

If you want to make all questions into 1 image and use it as spritesheet - get top left corner of your wanted question, same for bottom right, and set ImageRectOffset to left corner, and ImageRectSize to question size.
Also, in this case you won’t need to have all that blank space: just 2 pixels will be enough.