playMaker

Author Topic: uGUI text line break question  (Read 2605 times)

dreamingmethods

  • Playmaker Newbie
  • *
  • Posts: 8
uGUI text line break question
« on: February 02, 2015, 10:05:19 AM »
Hi there,

Can anyone help me! I'm using Unity 4.6 and the uGUI text component to display text on screen and it's working great with the Playmaker Set uGUI text and Set Property commands.

However, I'm trying to change some of the text via string variables, and no matter what I try, I can't get line breaks to pick up?? Neither Set uGUI text or Set Property seem to pick up \n or any other codes? They just display as they are, ie, "\n" in the text area. :(

Any ideas on how to pass a line break to uGUI text via Playmaker string var would be hugely appreciated... Thank you.

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: uGUI text line break question
« Reply #1 on: February 02, 2015, 10:21:03 AM »
Type it as it should be in the UI Text field, then copy-paste it into the Set Property or string variable field in Playmaker.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D