https://github.com/liangxiegame/reskit
https://github.com/liangxiegame/reskit
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/liangxiegame/reskit
- Owner: liangxiegame
- License: mit
- Created: 2021-12-22T07:15:16.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-27T07:40:18.000Z (almost 4 years ago)
- Last Synced: 2025-02-28T16:40:42.030Z (8 months ago)
- Language: C#
- Size: 2.44 MB
- Stars: 12
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ResKit
一套资源管理工具
由 QFramework 团队官方维护的独立工具包(不依赖 QFramework)。
## 环境要求
* Unity 2018.4LTS
## 安装
* PackageManager
* add from package git url:https://github.com/liangxiegame/ResKit.git
* 或者国内镜像仓库:https://gitee.com/liangxiegame/ResKit.git
* 或者[点此下载 ResKit.unitypackage](ResKit.unitypackage) 并安装到自己项目中的任意脚本中## 使用指南
``` csharp
// allocate a loader when initialize a panel or a monobehavour
var loader = ResLoader.Allocate();// load someth in a panel or a monobehaviour
loader.LoadSync("resources://smobj");loader.LoadSync("resources://Bg");
// load by asset bundle's assetName
loader.LoadSync("HomeBg");// load by asset bundle name and assetName
loader.LoadSync("home","HomeBg");// resycle this panel/monobehaivour's loaded res when destroyed
loader.Recycle2Cache();
loader = null;
```## 更多
* QFramework 地址: https://github.com/liangxiegame/qframework