tuyoogame / YooAsset

unity3d resources management system
https://www.yooasset.com/
Apache License 2.0
2.34k stars 460 forks source link

Loading All Objects的一些问题 #232

Open micyu opened 7 months ago

micyu commented 7 months ago

For example, if we have all the configuration files packed into one package, and we want to load and parse all the configuration files at once IEnumerator Start() { AllAssetsOperationHandle handle = package.LoadAllAssetsAsync(location); yield return handle; foreach(var assetObj in handle.AllAssetObjects) {
UnityEngine.TextAsset textAsset = assetObj as UnityEngine.TextAsset; } } 如果想要这个接口,所有对象要独立一个package

gmhevinci commented 7 months ago

推荐给配置文件添加tag,然后获取该tag的所有资源信息,通过专属接口来加载所有配置文件。