AssetBundle 策略

AssetBundle 策略

1、Logical Entity Grouping。按逻辑功能分。

Examples

  • Bundling all the textures and layout data for a User-Interface screen
  • Bundling all the models and animations for a character/set of characters
  • Bundling the textures and models for pieces of the scenery shared across multiple levels

  最上层逻辑适用于此策略,或单一完整的功能试用于此数据。如一个角色数据,一个道具数据。

2、Type Grouping。按类型分。

  适用于资源按平台区分。如同一个shader,ios、android、windows可以分别下载不同的asset bundle。

3、Concurrent Content Grouping

  适用于按场景分。

4、其它分类策略。

  1)高频资源与低频资源区分。

  2)如果资源的多个版本,用variant来区分。

  3)相斥的两个资源必须旋转于不同的asset bundle。如高模、低模。

  

参考:file:///C:/Program%20Files/Unity/Editor/Data/Documentation/en/Manual/AssetBundles-Preparing.html

原文地址:https://www.cnblogs.com/tekkaman/p/7610202.html