Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Mayhem on March 09, 2013, 12:23:09 PM

Title: Making a Linebreak/Return with Strings?
Post by: Mayhem on March 09, 2013, 12:23:09 PM
Hey there,

so i am trying to put a UILabel on this Sprite:

(http://www.kingpic.net/uploads/bildschirmfoto_2013-03-09_um_18_16_13.png)

I get to the text-Variable via the "SetProperties"-Action. Everything works fine, but the Problem is that i can't make a return/ line break:

(http://www.kingpic.net/uploads/bildschirmfoto_2013-03-09_um_18_18_23.png)

In the Inspector of the Label-Object i can write a text, and when i press "Enter" on my Keyboard it makes a linebreak. (i also scaled it down and rotated it, but that i can also manage in the FSM):

(http://www.kingpic.net/uploads/bildschirmfoto_2013-03-09_um_18_19_40.png)

So, how could i achieve this linebreak in PlayMaker?
Title: Re: Making a Linebreak/Return with Strings?
Post by: kiriri on March 09, 2013, 12:34:00 PM
very good question, tell me if you find a good answer ;)

Until then there's the solution that works in every plugin in Unity : Copy Paste :D
external text editor or text input field in unity, doesn't matter, it all works.
Title: Re: Making a Linebreak/Return with Strings?
Post by: Mayhem on March 09, 2013, 12:45:56 PM
 ;D

I don't think i'll find an answer, because i think this is a PlayMaker "issue".
I mean, we have within PlayMaker our State-Description, where it works. We make a Return and the State-Description in the Editor does so, too.
I think it would be great if that same behaviour would work on Strings (Variables, Globals, Properties etc.)!

And yes, i tried it out, C&P works fine! :)
But could that be a potential problem while playing? Strange displaying of the Text-Format or something like that.