donnyep / quarkasset Goto Github PK
View Code? Open in Web Editor NEW小巧轻量的Unity资源管理方案
License: MIT License
小巧轻量的Unity资源管理方案
License: MIT License
UnloadAsset,我调用后并没有想象中卸载掉资源
UnloadAssetBundle这方法参数为TRUE 释放AssetBundle文件内存镜像同时销毁所有已经Load的Assets内存对象?
比较菜,我看这个框架是学习用的,请大佬解惑
QuarkEngine 单例报空
复现:直接拷贝QuarkAsset文件夹替换旧版本
关闭:重新打ab包
这个单例不安全
我在想在加载场景中使用 LoadAssetAsync 先加载一些数据到内存里 格式类似下方的格式 但是很奇怪 LoadAssetAsync 的回调函数 onComplete 只会获得 AtlasType枚举 中的其中一个数据 (应该是枚举元素个数的数据) 而且有时也会报错 :
The AssetBundle 'StreamingAssets\assets_2dassest_spriteatlas' can't be loaded because another AssetBundle with the same files is already loaded.
foreach (AtlasType atlasType in Enum.GetValues(typeof(AtlasType)))//示例代码
{
QuarkResources.LoadAssetAsync(path, onComplete);
}
[QUARK-ERROR]-->> Cannot mark assets and scenes in one AssetBundle. AssetBundle name is Assets/SubGame/Game_2D
UnityEngine.Debug:LogError (object)
Quark.QuarkUtility:LogError (object) (at ./Library/PackageCache/com.quarkasset@2fc4b79a91/Runtime/Utility/QuarkUtility.cs:186)
Quark.Editor.QuarkBundleSearchLabel:DrawDragRect () (at ./Library/PackageCache/com.quarkasset@2fc4b79a91/Editor/QuarkWindowTab/QuarkAssetDatabaseTab/QuarkBundleSearchLabel.cs:93)
Quark.Editor.QuarkBundleSearchLabel:OnGUI (UnityEngine.Rect) (at ./Library/PackageCache/com.quarkasset@2fc4b79a91/Editor/QuarkWindowTab/QuarkAssetDatabaseTab/QuarkBundleSearchLabel.cs:50)
Quark.Editor.QuarkAssetDatabaseTab:OnGUI (UnityEngine.Rect) (at ./Library/PackageCache/com.quarkasset@2fc4b79a91/Editor/QuarkWindowTab/QuarkAssetDatabaseTab/QuarkAssetDatabaseTab.cs:124)
Quark.Editor.QuarkAssetWindow:OnGUI () (at ./Library/PackageCache/com.quarkasset@2fc4b79a91/Editor/QuarkAssetWindow.cs:113)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
看起来没也什么特殊字符,请教下
LoadSceneAsync(string sceneName, Action progress, Action callback);
参数:(sceneName, progress, callback, true);
UnloadAllSceneAsync(Action progress, Action callback);
先调用LoadScene,加载完毕后调用UnloadAllSceneAsync会报错。foreach循环增删的问题,但是我看代码觉得写的没问题。
辛苦您看看
报错:Assets/QuarkAsset/Runtime/Loader/QuarkAssetDatabaseLoader.cs:320--->Collection was modified; enumeration operation may not execute.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.