Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hiyorin/MemoryInfoPlugin-for-Unity
A set of tools for Unity to allow handling memory info for Android and iOS.
https://github.com/hiyorin/MemoryInfoPlugin-for-Unity
android ios memory-profiler native-plugin unity
Last synced: about 2 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/MemoryInfoPlugin-for-Unity
- Owner: hiyorin
- License: mit
- Created: 2018-08-10T17:44:50.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-11T16:53:36.000Z (almost 6 years ago)
- Last Synced: 2024-07-14T13:36:44.194Z (6 months ago)
- Topics: android, ios, memory-profiler, native-plugin, unity
- Language: C#
- Size: 28.3 KB
- Stars: 11
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-unity-open-source-on-github - MemoryInfoPlugin-for-Unity - A set of tools to allow handling memory info for Android and iOS (iOS / Android)
README
# 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.
```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);
}
```