When i change ImageRectSize or ImageRectOffset in ImageButton, the image just disappears.
Before:
After:
I think someone else is having this problem too:
I tried to change ScaleType but it didn’t work.
What should i do?
When i change ImageRectSize or ImageRectOffset in ImageButton, the image just disappears.
Before:
After:
I think someone else is having this problem too:
I tried to change ScaleType but it didn’t work.
What should i do?
Both require very specific numbers if those numbers aren’t the right one than the image can go transparent. I won’t tell what those numbers are becuase I myself don’t really know the calculations. But thats just a basic overview for you. Also it has to do something with the actual image size. (Not to be confused with the image label/button size)
Documentation: ImageLabel | Documentation - Roblox Creator Hub
So this is a bug? Even if i change the numbers to just 0.1 it still disappears.
Wait a bit ill show you how you can accomplish it…
I made this:
In-short you need the image size and then you can use imagerectsize to say scale the image and use imagerectoffset to move the scaled image.
For example I zoomed in the same image:
(More zoomed:
)
Sorry for sending after an hour. It seems like devforum died.
I will be honest, this doesn’t help my problem, it seems like this is just a bug. But thank you very much for your effort, i will still give you the solution mark.
May I ask what your trying to actually solve?
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.