• 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. 

    https://unity3d.com/cn/learn/tutorials/topics/scripting/assetbundles-and-assetbundle-manager?playlist=17117

    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.

  • 相关阅读:
    [洛谷P5408]第一类斯特林数·行
    11 React 组件生命周期
    10 React 组件 API
    9 React 列表 & Keys
    8 React 条件渲染
    7 React 事件处理
    6 React Props
    5 React State(状态)
    4 React 组件
    3 JSX语法
  • 原文地址:https://www.cnblogs.com/answerwinner/p/6242100.html
Copyright © 2020-2023  润新知