Skip to content

Latest commit

 

History

History
87 lines (62 loc) · 2.88 KB

File metadata and controls

87 lines (62 loc) · 2.88 KB

Unity Mobile Support - Storage

license license license

To support iOS/Android native features in Unity, this will provide variety functions. This package provide functions to interact with storage.

Table of Contents

Details

Supported Functions

Method Description Note Editor Behaviour
GetInternalUsableSpace Get usable space of internal storage "Usable" means to consider deletable caches and system's stability -1

Setup

Requirements

This library is compatible with the following environments.

  • Unity 2019.4 or higher

Install

To install the software, follow the steps below.

  1. Open the Package Manager from Window > Package Manager
  2. "+" button > Add package from git URL
  3. Enter the following

Package Manager

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": "..."
    }
  }
}

Licenses

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.