Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hiyorin/upm.memoryinfoplugin-for-unity
A set of tools for Unity to allow handling memory info for Android and iOS.
https://github.com/hiyorin/upm.memoryinfoplugin-for-unity
android ios memory-info native-plugin unity unity-package-manager
Last synced: 3 months ago
JSON representation
A set of tools for Unity to allow handling memory info for Android and iOS.
- Host: GitHub
- URL: https://github.com/hiyorin/upm.memoryinfoplugin-for-unity
- Owner: hiyorin
- License: mit
- Created: 2019-02-11T15:45:58.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-11T16:34:33.000Z (almost 6 years ago)
- Last Synced: 2024-10-10T10:23:12.344Z (3 months ago)
- Topics: android, ios, memory-info, native-plugin, unity, unity-package-manager
- Language: C#
- Homepage:
- Size: 12.7 KB
- Stars: 14
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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.
```javascript
{
"dependencies": {
// ...
"com.hiyorin.memoryinfo": "git://github.com/hiyorin/upm.MemoryInfoPlugin-for-Unity.git",
// ...
}
}
```# Usage
```cs
using MemoryInfo;
```#### Example
```cs
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);
}
```