I’m not a UI developer, but I do have basic knowledge and the skills to build them.
I made a basic model that is just a part with a surface gui adorned to it.What it does is makes HTTP Request using the Wikipedia API to retrieve information in-game (I’m making a basic “computer” system for immersion). However, since some Wikipedia articles are a treasure trove of information even after clearing all the markup tags (sadly it returns the contents of the page in XML Format) the text doesn’t fully fit into the TextLabel. I have planned out a system that checks the length of the string in the TextLabel and then removes that number characters from the beginning of the original string. Then (using a ListLayout) I create a new TextLabel and set the text to the remaining text and repeat this process until there are no characters left in the original string.
I have not yet implemented this yet though, and am wondering whether or not the the Automatic Size Property respects the maximum length for the TextLabel Text property.
P.S. - The search I used to test my creation is “Apple.” It is a surprisingly long article.
As you can see, the text is correctly sized and the frame is resizing to fit the text in, this is the desired behaviour, except for the fact that I need the Y AnchorPoint to be set to 0.
This issue is also only exhibited when the aspect ratio constraint causes the width of the UI to be resized smaller than it would otherwise be. By this, I mean that at this resolution the UI is exhibiting proper behaviour:
Amazing update! Now we don’t have to use TextScaled for GUIs, which is pretty much a pain if we want to make chatter system, as the text size will be changed constantly to fit into the GUI. Now we can make the GUI size itself to fit with the character.
I have been having an issue that doesn’t occur all the time, and it’s very irritating when it happens. When I had AutomaticCanvasSize turned on; it wouldn’t resize the canvas at all until the value was changed manually (which is what most of my UI doesn’t do) or when something is added. Due to most of my ScrollingFrames not resizing; I am unable to access some parts of the frame.
Hi! I was trying to use AutomaticSize today, however, all of the UI in our game has a UIScale object at the root of the ScreenGui to take care of UI scaling for different resolutions. Because of this, we ran into all of the above mentioned issues. Are these issues currently being worked on, and if so, is there an expected date for a fix?
Will this property handle ui objects with ClipsDescendants enabled in the future? I have certain UI elements that expand past the border of a UI frame, but get cut off by ClipsDescendants. AutomaticSize doesn’t seem to take this into account yet and will resize the frame as if the children of ui objects with ClipsDescendants enabled are visible past the parent border
With this implemented, I am no longer getting concerned on how to update the ScrollingFrame’s CanvasSize so it can fit with the amount of content inside it, as it is now automatically. Bravo!
Hi @SillyMeTimbers - apologies for the late response on this, I went ahead and created a ticket to investigate this issue. Thank you for the bug report!
Hi @JohnnyMorganz - apologies for the late response, however I wanted to update you that I have a fix for your issue that is currently being reviewed. I referenced your original post and have confirmed that the fix resolves your issue.
The fix should arrive in about 2-3wks, assuming no further issues are discovered during testing/deployment.
Thanks for your original bug report and following up in this post!
@DrRanchDressing Hey, you disabled this feature on my game a while back because of issues we were having, but I’m wondering if it’s been re-enabled or if the issues have been fixed or have an ETA? It’s been about two and a half months now.
When you disabled this on our game, it fixed the major issues we had with some guis. However, we’ve been seeing reports that some similar bugs are still popping up. Not sure how related this is, but it looks exactly like the original issue we had with Automatic Size. I’ll explain the bug below. I believe this has only been reported since Automatic Size property.
This is just a close-up of someone’s screen of the same GUI I posted above. You can see the frame on the right side containing the image and details is very squished and unusable.
PS - I also really want to start using this feature because we’re redoing some guis for the game, and I’m seeing places where this would be great to use.