MemoryInfoPlugin
A set of tools for Unity to allow handling memory info for Android and iOS.
com.hiyorin.memoryinfo 
Install via UPM
Add to Unity Package Manager using this URL
https://www.pkglnk.dev/memoryinfo.git README Markdown
Copy this to your project's README.md
## Installation
Add **MemoryInfoPlugin** to your Unity project via Package Manager:
1. Open **Window > Package Manager**
2. Click **+** > **Add package from git URL**
3. Enter:
```
https://www.pkglnk.dev/memoryinfo.git
```
[](https://www.pkglnk.dev/pkg/memoryinfo)README
upm.MemoryInfoPlugin-for-Unity
unity package manager
A set of tools for Unity to allow handling memory info for Android and iOS.
Install
Specify repository URL git://github.com/hiyorin/upm.MemoryInfoPlugin-for-Unity.git with key com.hiyorin.memoryinfo into Packages/manifest.json like below.
{
"dependencies": {
// ...
"com.hiyorin.memoryinfo": "git://github.com/hiyorin/upm.MemoryInfoPlugin-for-Unity.git",
// ...
}
}
Usage
using MemoryInfo;
Example
public void Example()
{
var plugin = new MemoryInfoPlugin();
var info = plugin.GetMemoryInfo();
var text = string.Format("{0}/{1} KB ({2}%)", info.UsedSize, info.TotalSize, (int)(100f * info.UsedSize / info.TotalSize));
Debug.Log(text);
}
No comments yet. Be the first!