Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: mfenollar on September 01, 2013, 10:23:11 PM
-
Hi all,
I have a GUI box that I'm using as speech bubbles above the heads of characters. Does anybody know of a way to expand the box up instead of down with additional lines of text? There aren't any options I can see within the GUISkin.
Thanks
-
I'll elaborate. I have an object with an FSM that drives the dialogue. The setup is:
GUILayout Begin Area Follow Object
GUILayout Box
GUILayout End Area
The GUI Box is set to follow a character above its head, but with multiline text the box expands down. Is there a way to have the box expand up instead?
I'm fairly new to Unity and Playmaker, any help would be much appreciated!
-
bump
Anybody? This one problem is holding me back somewhat.
Thanks
-
Hi,
uhm, I am not sure there is a way to do that easily. what I would do is try to set up a guilayout area with an offset so that it starts way above your anchor point, and then in your layoutm, you would have a vertical layout with first a flexible space and then your content. in effect you would have a space that starts way above your anchor point, but all constraints to start from the bottom because of the flexible space.
does that make sense?
bye,
Jean
-
Thanks! It works perfectly, I'm just having trouble getting it to work following an object. I'll keep trying and see how I go.
Much appreciated!
-
hi,
use the action GUILayoutBeginAreaFollowObject. Are already using this?
bye,
Jean
-
Hi Jean,
I was using that action but I must have messed something up along the way, when I tried it again it worked.
Thanks very much for your time, you've helped me a lot!