Found this after I wrote the below, my report is a bit clearer:
http://hutonggames.com/playmakerforum/index.php?topic=12940.msg60396#msg60396Playmaker version 1.8.4
(latest as of now)
Action: String Split
Issue: \n \t separators don't work.
Expectation: According to tooltip, \n should accept a line break, and \t should accept a tab as separators.
Bug: It will treat any n or t as separator, e.g.
D'artagnan will be split up. Also, will not split up at actual line break or tab.
Repro 1: make a string value, and set it to
D'artagnan, then try the action with \n and \t.
Repro 2:- create test.txt in asset folder, put d'artagnan Athos Aramis Porthos but each name into a line (or tab).
- Make a new FSM, add action "load from file" in first state.
- path is Assets/Test.txt, set variable e.g. "Test"
- next state, add the String Split action, try with \n or \t, and string array as e.g. "Data".
- Play, watch Data
Related, a small improvement would be to update the tooltip of Action "Load from File" (which I'm using in conjunction). Change the tooltip to: "e.g. Assets/Test.txt" giving users an instant idea where the text to load is expected.
Thanks!