com.bolygon.assetsystem
v0.0.7
Published
The system to help uploading/downloading assets and game scenes. ## Game Config ```json { "ID": 1002, "Scenes": [ { "Name": "Boat", "FullName": { "PackName": "bg_boat", "ABN
Downloads
1
Readme
Asset System
The system to help uploading/downloading assets and game scenes.
Game Config
{
"ID": 1002,
"Scenes": [
{
"Name": "Boat",
"FullName": {
"PackName": "bg_boat",
"ABName": "scene",
"AssetName": "Island"
},
"SceneType": 0,
"Entrance": true
}
],
"DllScripts": [
{
"Name": "bg_boat.dll",
"Version": "v0_0_1"
}
],
"PreAssetBundles": [] //需要预加载的AssetBundles
}
全局资源索引
- PackName: 全局唯一。同一个PackName会建立一个索引文件
- ABName: AssetBundle Name中除了PackName部分,对应一个硬盘的文件
- AssetName: AssetBundle中的一个资源文件,Prefab、Texture、Mesh或Scene
API
加载Prefab
var ap = new AsyncPrefab("bg_gamekit/vegetationlarge/VegetationLarge03");
yield return ap.Load();
var go = GameObject.Instantiate(ap.Prefab);