GUI Tiling Image Question.

So, I have this image I’m tiling vertically, to do this I set up my GUI, all appears to render fine. Start increasing the height of the rect transform, all appears to tile great until around 17000 GU’s then all of a sudden, I start to see it tile in the x direction exactly the same as the y. It’s more that the behaviour changes that confuses me.

I’m curious as to what is happening here? Does anyone know? Have I reached some unstated in engine limit? Or have we got a bug?

Just a bit annoying really, we are currently just going to stack multiple ones on top of each other but wanted to find out what’s happening.

No-one got any idea?

When in doubt, go to the code - from Image.cs:

            // Safety check. Useful so Unity doesn't run out of memory if the sprites are too small.
            // Max tiles are 100 x 100.
            if ((xMax - xMin) > tileWidth * 100 || (yMax - yMin) > tileHeight * 100)
            {
                tileWidth = (xMax - xMin) / 100;
                tileHeight = (yMax - yMin) / 100;
            }

So yes, if either dimension hits 100 tiles, both change.

1 Like

Thank you for your reply. Keep forgetting about the source… -___-