To support iOS/Android native features in Unity, this will provide variety functions. This package provide functions to interact with storage.
| Method | Description | Note | Editor Behaviour |
|---|---|---|---|
| GetInternalUsableSpace | Get usable space of internal storage | "Usable" means to consider deletable caches and system's stability | -1 |
This library is compatible with the following environments.
- Unity 2019.4 or higher
To install the software, follow the steps below.
- Open the Package Manager from
Window > Package Manager "+" button > Add package from git URL- Enter the following
Or, open Packages/manifest.json and add the following to the dependencies block.
{
"dependencies": {
"jp.co.cyberagent.unity-mobile-support-storage": "https://github.com/CyberAgentGameEntertainment/UnityMobileSupport.git?path=/Packages/MobileSupportStorage"
}
}If you want to set the target version, write as follows.
Note that if you get a message like No 'git' executable was found. Please install Git on your system and restart Unity, you will need to set up Git on your machine.
To update the version, rewrite the version as described above. If you don't want to specify a version, you can also update the version by editing the hash of this library in the package-lock.json file.
{
"dependencies": {
"jp.co.cyberagent.unity-mobile-support-storage": {
"version": "https://github.com/CyberAgentGameEntertainment/UnityMobileSupport.git?path=/Packages/MobileSupportStorage",
"depth": 0,
"source": "git",
"dependencies": {},
"hash": "..."
}
}
}This software is released under the MIT license. You are free to use it within the scope of the license, but the following copyright and license notices are required.
