playMaker

Author Topic: GUI Text  (Read 2178 times)

IronTrue

  • Playmaker Newbie
  • *
  • Posts: 9
GUI Text
« on: April 23, 2016, 03:40:10 PM »
Hello. Guys, help me pls.

When there is too much text, it gets out for the screen.

Use \n or copy invisible new line dont work. :(


IronTrue

  • Playmaker Newbie
  • *
  • Posts: 9
Re: GUI Text
« Reply #1 on: April 24, 2016, 07:46:39 AM »
Pls, help me.

I posted this here, because of i use "Set GUI Text" in PlayMaker.

IronTrue

  • Playmaker Newbie
  • *
  • Posts: 9
Re: GUI Text
« Reply #2 on: April 24, 2016, 05:16:27 PM »
My images is broken, then i try write my question here.

How i can use break line (new line) in Set GUI Text? Press Enter and copypaste newline doesent work.

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4002
  • Official Playmaker Support
    • LinkedIn
Re: GUI Text
« Reply #3 on: April 24, 2016, 07:11:13 PM »
I think this is a bug in Unity:
http://answers.unity3d.com/questions/16865/making-newline-n-in-inspector.html

Making the edit field a TextArea should fix it. I've attached a version of SetGUIText that uses a TextArea for you to try...

Alternatively you could use the StringReplace action e.g., to replace "\\n" with "\n".

IronTrue

  • Playmaker Newbie
  • *
  • Posts: 9
Re: GUI Text
« Reply #4 on: April 25, 2016, 05:50:09 AM »
I think this is a bug in Unity:
http://answers.unity3d.com/questions/16865/making-newline-n-in-inspector.html

Making the edit field a TextArea should fix it. I've attached a version of SetGUIText that uses a TextArea for you to try...

Alternatively you could use the StringReplace action e.g., to replace "\\n" with "\n".

I think any symbol (\n \\n) doesnt work in inspector "GUI Text". I use search on this forum, all advise copypaste new line from notepad, but this too doesnt work.

I will be grateful if you take me custom scene with fix my problem.

PS: i can easy to press Enter in GUI Text in inspector and next text will be write in new line, but how use new line in Set GUI Text (playmaker) i dont know :(
« Last Edit: April 25, 2016, 05:52:19 AM by IronTrue »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4002
  • Official Playmaker Support
    • LinkedIn
Re: GUI Text
« Reply #5 on: April 25, 2016, 03:35:48 PM »
Sorry forgot to attach the script to my previous post.
Try the attached version of SetGUIText that uses a TextArea.