I need to set the path for saving the pictures with an application for Android and IOS with UNITY
28,264
You can save files to Application.persistentDataPath. Unity apps do not have write permissions to Application.dataPath
on Android or iOS devices.
Also, don't forget to join the path and the folder name with a forward slash:
Application.CaptureScreenshot(Application.persistentDataPath + "/Screenshot.png");
Author by
Admin
Updated on December 30, 2020Comments
-
Admin over 3 years
My actual code:
function Update() { if(Input.GetMouseButtonDown(0)) { Debug.Log("foto"); Application.CaptureScreenshot(Application.dataPath + "Screenshot.png"); } }
I need the path for the output of every photo for this function.
Thanks!