Unity5 AssetBundle
设置assetBundleName
AssetImporter importer = AssetImporter.GetAtPath(p); importer.assetBundleName = x; importer.assetBundleVariant = y;
AssetBundleManifest
- GetAllAssetBundles
- GetAssetBundleHash
- GetAllDependencies
- GetDirectDependencies
BuildPipeline
- BuildAssetBundles
- BuildPlayer
- GetCRCForAssetBundle
- GetHashForAssetBundle
https://docs.unity3d.com/Manual/BuildingAssetBundles.html
AssetBundle names are always lower-case. If you use upper-case characters in the name, they are converted to lower-case.
In addition to these, another two files are created: another AssetBundle and another manifest file. They are created for each folder that AssetBundles are created in, so if you always create AssetBundles in the same place, you only get two extra files.
Each AssetBundle has some technical overhead. AssetBundles are files that wrap Assets. This wrapper adds to the overall size of the AssetBundle. Even though this is not a significant increase in size, it is measureable. AssetBundles also require a certain amount of management to organize, create, upload and maintain. The more AssetBundles being used increases overhead for a project, both technical and managerial.
When organizing AssetBundles, a balance must be struck between too many small AssetBundles that need to be tracked and generate overhead, and too few AssetBundles that are large and contain unnecessary or redundant data. The exact balance will depend heavily upon the needs of the project.
Asset dependencies are never lost. However, this can also cause the duplication of Assets.
This (asset bundle variant) is particularly useful when working with projects that need to select one Asset from a wide variety of different possible choices based on criteria like resolution, language, localization, or user preference.
posted on 2017-01-02 10:39 AnswerWinner 阅读(440) 评论(0) 编辑 收藏 举报
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步