Playmaker Forum

PlayMaker Feedback => Action Requests => Topic started by: IDontKnow on February 20, 2014, 04:29:21 PM

Title: Load Text Asset From Resources
Post by: IDontKnow on February 20, 2014, 04:29:21 PM
What I'd like to do is find a text asset from Resources and save it as a string. As far as I can tell this isn't covered by any existing actions.

Something like the 'Resources Load'  but for text assets.
http://hutonggames.com/playmakerforum/index.php?topic=3916.msg24318#msg24318

Is this possible?
Title: Re: Load Text Asset From Resources
Post by: Marsh on February 20, 2014, 07:54:15 PM
You want it to read a text file and put it into a string? The entire file into 1 line? Or a array of 1 string per line?
Title: Re: Load Text Asset From Resources
Post by: IDontKnow on February 20, 2014, 08:01:35 PM
An array would be ideal. I'd be thrilled to have a modified version of the 'Split Text To Array List' action that let me point to a text file stored in the Resources folder, as opposed to manually tying it to one.
Title: Re: Load Text Asset From Resources
Post by: jeanfabre on February 24, 2014, 08:38:54 AM
Hi,

 Use first ResourceLoad action:
http://hutonggames.com/playmakerforum/index.php?topic=3916.msg19802#msg19802

bye,

 Jean

Title: Re: Load Text Asset From Resources
Post by: IDontKnow on February 24, 2014, 04:58:14 PM
Use first ResourceLoad action:
http://hutonggames.com/playmakerforum/index.php?topic=3916.msg19802#msg19802

Unless I'm mistaken this action only supports GameObjects, Textures and Materials doesn't it?
Title: Re: Load Text Asset From Resources
Post by: jeanfabre on February 25, 2014, 03:01:27 AM
Hi,
 
D'oh, I updated the action, please redownload.

bye,

 Jean
Title: Re: Load Text Asset From Resources
Post by: IDontKnow on February 25, 2014, 05:01:35 AM
Works like a charm! Thanks as always Jean. :)