playMaker

Author Topic: Load from file action help  (Read 1335 times)

cel

  • Full Member
  • ***
  • Posts: 132
Load from file action help
« on: November 27, 2019, 01:45:12 PM »
Hi, I'm using the load from file action and it's working great, but I want the file path to always point at a directory inside the unity project, something like apppath$/test/example.file, is this possible?


Also this is the text I'm getting:
<config>
       <var name="marker"><![CDATA[1]]></var>
</config>

How do I parse the text so that I get the number in [ ] in the cdata?

Any help would be greatly appreciated

Thanks in advance

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Load from file action help
« Reply #1 on: December 27, 2019, 05:22:57 AM »
Hi,

 the only place you can do that is the streamingAssets, Unity will give you that path

https://docs.unity3d.com/Manual/StreamingAssets.html

then you can work with the file system anyway you want ( within the rules of the published platform)

for example:
https://forum.unity.com/threads/solved-loading-image-from-streamingassets.717869/

Bye,

 Jean