Understanding Storage Distinctions Accessible from Application.persistentDataPath in Unity

Asked 1 years ago, Updated 1 years ago, 89 views

The path you can get from Application.persistentDataPath should be /data/com.xxx.xxx/files, but AndroidManifest.xml has

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

As it says, the terminal writes data to the main body and writes it to SD CARD.

Does anyone know how to tell if Unity is currently writing data or SD CARD?(The reason I want to know is that when I download the file, I check the error that there is no space, but I want to check it before downloading it and let the user know.)

I can get the empty space of the unit and if I have SD CARD, but I don't know where Unity is writing, so I don't know where to look when I check the capacity.

android unity3d

2022-09-30 20:48

1 Answers

I didn't try it, so I'm sorry if it's not true.

The following website appeared when I went around.

http://hiiro-game.seesaa.net/article/272455420.html

Would you like to choose between internal only or external in your Player settings?


2022-09-30 20:48

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.