Such a good tutorial! Helped out a lot!!
Probably the best UI tutorial out there. Nice work
Although I’m over a year late to the conversation, I’ve got a question.
In regards to changing between the images with ImageRectSize, how would a script like that look like to change between the ImageRectSize and ImageRectOffset?
Is it possible to write a v2 version including constraints?
Nice tutorial I’m going to cut out this example
To try it out right now.
Great tutorial! Bookmarked for sure.
I don’t have much time but it would like this:
local SPRITE_SIZE_X, SPRITE_SIZE_Y = 32, 32 local function changeSprite(newSpriteIndex) local newSpriteOffset = Vector2.new(newSpriteIndex * SPRITE_SIZE_X, newSpriteIndez * SPRITE_SIZE_Y) imageLabel.ImageRectOffset = newSpriteOffset end changeSprite(0) changeSprite(3)
I don’t have time to do more sorry, and this only changes the offset. If you’ve got a good setup then you shouldn’t need to change sizes anyway.
Yeah sure, I’ve been meaning to do something about constraints so I’ll put v2 on my to do list