Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: cel on November 27, 2019, 01:45:12 PM

Title: Load from file action help
Post by: cel 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
Title: Re: Load from file action help
Post by: jeanfabre 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