Update document

This commit is contained in:
hevinci
2022-05-12 12:37:48 +08:00
parent 4cad587609
commit 2da81212b4
3 changed files with 25 additions and 2 deletions

View File

@@ -142,6 +142,21 @@ IEnumerator Start()
}
````
**获取资源信息列表**
通过资源标签来获取资源信息列表。
````c#
private GetAssetInfosByTag(string tag)
{
AssetInfo[] assetInfos = YooAssets.GetAssetInfos(tag);
foreach (var assetInfo in assetInfos)
{
Debug.Log(assetInfo.AssetPath);
}
}
````
**FairyGUI支持解决方案**
注意在FairyGUI的面板销毁的时候将资源句柄列表释放否则会造成资源泄漏。