Solved: Focus Template - Button padding not correct for multi-line text
Posted: Sun Dec 01, 2019 6:32 pm
Hello,
I tried playing around and adapting the Focus template which is part of the Dialogue Manager and I noticed that when a text is more than one line, the padding inside the button doesn't seem correct:
As you can see, the padding for the first button (Good morning Noodles) and the third (Bruuu Bruuuu?), which have one line of text, looks good. But for the second button (I'm a very long text...), the padding seems to be correct for the left and the right side, but not for top and button.
The Content GameObject of the "Response Button Panel" has a Vertical Layout Group with Padding 8 for all directions and the "Response Button Template" GameObject also has a Vertical Layout Group with the same padding.
How can I make the padding work for answers with more than one line?
All the best,
Evelyn
I tried playing around and adapting the Focus template which is part of the Dialogue Manager and I noticed that when a text is more than one line, the padding inside the button doesn't seem correct:
As you can see, the padding for the first button (Good morning Noodles) and the third (Bruuu Bruuuu?), which have one line of text, looks good. But for the second button (I'm a very long text...), the padding seems to be correct for the left and the right side, but not for top and button.
The Content GameObject of the "Response Button Panel" has a Vertical Layout Group with Padding 8 for all directions and the "Response Button Template" GameObject also has a Vertical Layout Group with the same padding.
How can I make the padding work for answers with more than one line?
All the best,
Evelyn