playMaker

Author Topic: Making a Linebreak/Return with Strings?  (Read 2378 times)

Mayhem

  • Full Member
  • ***
  • Posts: 171
Making a Linebreak/Return with Strings?
« on: March 09, 2013, 12:23:09 PM »
Hey there,

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



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:



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):



So, how could i achieve this linebreak in PlayMaker?

kiriri

  • Hero Member
  • *****
  • Posts: 506
Re: Making a Linebreak/Return with Strings?
« Reply #1 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.
Best,
Sven

Mayhem

  • Full Member
  • ***
  • Posts: 171
Re: Making a Linebreak/Return with Strings?
« Reply #2 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.