How can I add a colored border to my text box?

Hello all. I need to differentiate one text box from another in my most recent game. To do this, I figured I would just give each different text box a border. As far as I’ve seen, I cannot do this. Is there a way?


Each gameobject in a canvas hierarchy can only have one rendered component at a time. You need two gameobjects for this. The first (hierarchically first) with the text and with border second. You can use the 9-slice technique to create a border that’s not using much space on the sprite. Switch the Image from Simple to Sliced and edit the sprite like this: