Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: stigma on August 24, 2019, 04:19:26 PM
-
I use Take Screenshot but I can not save the capture in the game folder.
I tried a lot of things but nothing helps. I want to be able to then use the screenshot in a material.
What is Persistyent Data Path for? There is no doc on this action.
Thank you
-
persistant data is a folder structure that is the same across all PC and all MACs. However, on Mobile devices its totally different.
Here is an action which determines the paths for you
https://hutonggames.com/playmakerforum/index.php?topic=11861.0
Here is some reading for Mobile devices: https://hutonggames.com/playmakerforum/index.php?topic=20974.msg92067#msg92067
I just came across this, so it should be helpful to both of us.
The Android persistant data path should be this
/storage/emulated/0/android/data/com.mycompany.project/files/
Below are the paths, but its a bit older, so subject to change
----------------
Windows:
C:\Users\<userprofile>\AppData\LocalLow\<companyname>\<productname>
Windows Store:
%userprofile%\AppData\Local\Packages\<productname>\LocalState
Mac:
~/Library/Application Support/companyname/productname
older version of Unity on Mac:
~/Library/Caches folder
~/Library/Application Support/unity.companyname.productname.
Linux:
$XDG_CONFIG_HOME/unity3d/<companyname>/<productname>
which is the-same as
~/.config/unity3d/<companyname>/<productname>
Android:
/Data/Data/com.<companyname>.<productname>/files
with SD card on the Android device:
/storage/sdcard0/Android/data/com.<companyname>.<productname>/files
a fleshed out example would be
/storage/emulated/0/android/data/com.mycompany.project/files/
iOS:
/var/mobile/Containers/Data/Application/<RandomFolderName>/Documents
Example of the RandomFolderName full name:
/var/mobile/Containers/Data/Application/<055811B9-D125-41B1-A078-F898B06F8C58>/Documents
-
I understand. But how to make Playmaker get the screenshot. Is there only Assets and Scene that is available?
it's not for a mobile but for a PC
-
You might have a easier time with the updated action found on the ecosystem: https://hutonggames.com/playmakerforum/index.php?topic=11308.msg84082#msg84082
-
it's ok but how to recover the image in unity?
-
The ecosystem actions should save the screenshot as a texture or file. If its a texture, you can reference this in your scene. If its a file, you may be able to save it as a Playmaker Object variable, if so then you can reference that in your scenes too.
-
I want to save it as texture but I can not do it.