edited May 2015 in ORK Support
Earlier today I was looking for a way to horizontally stretch a GUI box's content box prefab depending on the amount of text being displayed. Is this not supported yet or am I missing an option somewhere? I have the sliced UI element and everything.

Basically what I'm attempting to do is have lines of dialogue appear above NPCs' heads, with a semi-transparent black box behind the text to improve visibility. But the black box needs to change size to match the size of the string, otherwise it looks bad.

(Also the fact that there doesn't seem to be a way to mount the GUI Box to a moving target!)
Post edited by Kirb on
Tactics RPG Grid Battle System for ORK
---------------------------------------
Personal Twitter: https://twitter.com/AMO_Crate
I make RFI! https://twitter.com/NootboxGames
  • edited May 2015
    That's not possible currently, only vertical adjustment, the width of the box is fixed.
    If you're using a speaker in your dialogue, you can use the Display At Actor option and the GUI box will follow the actor's game object.
    Post edited by gamingislove on
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • I would like to speak about this taking advantage from Kirb's post: if in future this could be considered it would be really nice: sometimes it could be really helpfull to have some streched box depending on horizontal context, especially when displaying multiple choice or a variable text.
    If you could give it a thought GiL it would be really appreciated. :)
  • Seconded! It'd be very handy to have for particular situations.
    Tactics RPG Grid Battle System for ORK
    ---------------------------------------
    Personal Twitter: https://twitter.com/AMO_Crate
    I make RFI! https://twitter.com/NootboxGames
Sign In or Register to comment.