I am developing a game (iOS/Android with Unity Game Engine) that requires to download resources to be stored locally on device. I wish to check free space on device to send an error message before download starts in case it's not enough.
How can I check it? I couldn't find any clear procedure on my research.
CodePudding user response:
It varies by platform so isn’t a simple answer. The free Unity plugin Simple Disk Utils handles it for you on Windows, Mac, Android and iOS and full source code is available on GitHub so you can see for yourself how it’s achieved on the different platforms.