Making a Custom Background for Response Button

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
slothins
Posts: 13
Joined: Thu Oct 24, 2019 11:18 am

Making a Custom Background for Response Button

Post by slothins »

Hey,

So I know this question isn't strictly Dialogue System related, but I would love some help if you can.

I'm using mostly the same hierarchy as the VN example project. I'm trying to change the background to something I've made and it isn't working. I've tried making a 32x32 px box and a 100x100 px, and it simply stretches no matter the size or length of the text, and I've also tried making a full box but that just didn't work at all. I can't seem to find a copy of the default background to just edit it and apply it.

Do I need to do something specific to the layout groups or...?
User avatar
Tony Li
Posts: 22055
Joined: Thu Jul 18, 2013 1:27 pm

Re: Making a Custom Background for Response Button

Post by Tony Li »

Hi,

The default background is built into Unity and isn't readily available to edit.

If I understand correctly, you'll want to "9-slice" your background sprite: Unity - Manual: 9-slicing Sprites.

This will prevent it from looking strangely stretched out when it's resized to fill the button's background area.
Post Reply