Skip to content

A set of tools for Unity to allow handling memory info for Android and iOS.

License

Notifications You must be signed in to change notification settings

hiyorin/MemoryInfoPlugin-for-Unity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MemoryInfoPlugin-for-Unity

A set of tools for Unity to allow handling memory info for Android and iOS.

Install

unitypackage

MemoryInfoPlugin-for-Unity.unitypackage

package manager

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);
}

About

A set of tools for Unity to allow handling memory info for Android and iOS.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages