Forum rules - please read before posting.

Resizing speech bubble to fit text?

Is this possible? I seem to remember reading something about it...

Comments

  • What's your Menu's Source set to?

    If Adventure Creator, you can set the Size to Automatic to have it resize, but if using Unity UI (recommended), you can make use of Unity's Content Size Fitter component to alter the size of your UI prefab based on the text.

  • I'm using Unity UI. Is it possible to do this with just a Content Size Fitter? I tried using a Content Size Fitter on its own (placed on the speech bubble), but it doesn't seem to work. If I have a Layout Group it does work, but I don't want to use a Layout Group because then I can't control where the text is in the speech bubble.

  • Yes, IIRC a Layout Group is necessary to be used in combination with Content Size Fitter.

    If you haven't seen it, a speech-bubble template is available on the Downloads page. You may find its suitable for your needs, but if not - it can be used as an example of how these components can be used together.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.