I am wanting to keep descriptions for my passes all the same size, but can’t find a good solution. I have a textsizeconstraint inside them, set to max 24, but I can’t really rely on that, as 24 is way too big for mobile, but way too small on larger screens.
I tried using GetTextSize, but it’s not really useful for my situation. But basically, it should set the descriptions to be all at the same size as the ‘smallest’ one, being the one at the top. That way they all look the same size
I have that property set. You didn’t read my question. I want ALL the text to be the SAME size. So if text is only a single word, it should be the EXACT same size as a text which is longer.
You mentioned you used GetTextSize() but I assume you did so incorrectly, since it’s perfect for this kind of task, if you really need text to be the same size then why are you setting the FontSize of each label differently?
“I have a textsizeconstraint inside them, set to max 24, but I can’t really rely on that, as 24 is way too big for mobile, but way too small on larger screens.”
He already tried this, read the post before trying to help.
Tell me how to do it then… I have it set to 24 max, 1 min. There’s nothing I can really do with them to get it perfect. As 24 is way too big for mobile, but 24 is too small for console. Explain how can I can get it perfect across all devices, but for all the descriptions to have the exact same font size, without them being too big for their textlabel
Check online for the dev manual, they explain it pretty well there. You just have to test it and see what settings work for you. There’s no coding solution that doesn’t modify one of these properties so changing around the UI properties and setting a few constraints is your only option.
I’ve made many UIs before and I’ve never had to do anything to get size to work properly besides edit the UI property and set a constraint or two. Just look into it a bit more and tweak the settings to see what works for you.
Using the text size constraint, I suppose you could identify the ideal max size for your computer, and then scale that max size for each client based on their gui absoluteSize compared to yours.
Say the ideal size on computer is 80, when the gui absoluteSize.X is 600 pixels. If the mobile client gui’s absoluteSize.X is 250 pixels, you would set the max value of the constraint to 80 * (250 / 600).
In this case, the test size would appear the same on all devices (relative to the gui’s size).
Note: I can’t say I’ve tested this out myself, but it makes sense in my head. If you can’t find another solution you may as well give it a shot. I also think it would work best on guis with an aspect ratio set.
I do not get what is the problem you are having here because you seemed to have already solved the problem ._.
But basically, it should set the descriptions to be all at the same size as the ‘smallest’ one, being the one at the top. That way they all look the same size