Page 1 of 1

Success With Bubble Sizes

Posted: Tue Aug 21, 2018 12:43 am
by pegassy
Hey,

I am really enjoying the results I am getting with the bubble system. I started testing it as an alternative to JRPG UI, and it is growing more and more on me as it does not require the player to take their eyes off the player, and adds a comic book feel to a side-scroller.

The current issue that I am trying to resolve is regarding the resizing of the bubbles. The current bubble art has got a small speech line extending from the bubble towards the player or NPC, which looks really nice. However, when more text is placed for a single dialogue, it appears that that the whole bubble is just stretched vertically, causing some of the text to come out at the bottom, where the vertical line part of the bubble is extended.

I tried to solve it by trying to create some custom bubble sprites, where I tried a variety different methods, but somehow I can never get it right. Even if I completely remove the extension, and make it a regular white box, I have some resizing issues. Does that seem to be a common issue, and can you think of any ways to work around this?

Thanks.

Re: Success With Bubble Sizes

Posted: Tue Aug 21, 2018 10:19 am
by Tony Li
Hi,

Yes, it's a common headache with Unity UI's auto-layout. I suggest reproducing this in the Unity editor. When you get the bubble into this state, hop over to the Hierarchy and inspect the bubble UI elements. Try adjusting the layout group(s), especially their top and bottom borders, content size fitters, and layout elements until the text fits the way you want. Then make a note of these settings so you can apply them after you exit play mode.

If you can't find good settings, please feel free to send an example to tony (at) pixelcrushers.com. I'll be happy to take a look.

Re: Success With Bubble Sizes

Posted: Wed Aug 22, 2018 8:39 pm
by pegassy
Thank you so much Tony. I will give that a try. Since I usually change multiple objects under hierarchy, I tend to prefab the parent object and then reinsert it in the inspector rather than trying to copy the properties.