playMaker

Author Topic: Load Text Asset From Resources  (Read 5575 times)

IDontKnow

  • Junior Playmaker
  • **
  • Posts: 56
Load Text Asset From Resources
« 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?
--

Marsh

  • Full Member
  • ***
  • Posts: 227
  • Comfort the disturbed, disturb the comfortable
Re: Load Text Asset From Resources
« Reply #1 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?

IDontKnow

  • Junior Playmaker
  • **
  • Posts: 56
Re: Load Text Asset From Resources
« Reply #2 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.
--

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Load Text Asset From Resources
« Reply #3 on: February 24, 2014, 08:38:54 AM »

IDontKnow

  • Junior Playmaker
  • **
  • Posts: 56
Re: Load Text Asset From Resources
« Reply #4 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?
--

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Load Text Asset From Resources
« Reply #5 on: February 25, 2014, 03:01:27 AM »
Hi,
 
D'oh, I updated the action, please redownload.

bye,

 Jean

IDontKnow

  • Junior Playmaker
  • **
  • Posts: 56
Re: Load Text Asset From Resources
« Reply #6 on: February 25, 2014, 05:01:35 AM »
Works like a charm! Thanks as always Jean. :)
--