I apologize up front.
I played with Playmaker for a couple of months and got 90% of my app done flawlessly. Xmls, multiple canvases interaction, animated sprites and all. But I feel like a complete newbie asking this.
I browsed the forum up and down and tried as many suggestions I could find. But for whatever reason I still cannot get to replace a comma in a string variable with a new line, and use that to set a Text component.
I can see the comma getting replaced, but the text always ends up being shown as one line.
I could use the StringAddNewLine action. But my string is actually made out of about 30 lines, comma divided. Before having to enter each one into an Element of that action I would like to find out the more elegant solution.
I tried StringSplit the comma into a StringJoin using any combination of new line shortcut separators I know of and/or found around.
\\n //n \\r\\n //r//n \r\n /r/n <br>
As well as manually copying a new line from a text editor and pasting it into the separators or a variable.
To no avail.
I also tried a simple BuildString with all the same options. Same failure.
I tried a StringReplace. Same.
Reading the forum, i understand this "may" be a limitation of how Unity2017 ingests strings.
But given that I can add my own new line text directly into the component.
I thought to ask here Im not missing something obvious. So...
Given a very long variable string like this:
a,b,c,...,...
How could one programmatically break that to set UGuiTextSetText's Text so that the component resolves:
a
b
c
...
...
Please....
Im using Playmaker 1.8.5 on a mac and Unity2017