zoukankan      html  css  js  c++  java
  • 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.

  • 相关阅读:
    java基础-对象
    java基础-类
    java基础-数组
    java基础-for循环、while循环相关
    java基础-程序执行流程之if-else语句
    ODBC, OLEDB, ADO, ADO.NET
    无题
    优秀资源
    SSRS Report Knowledge Base
    SSRS 通过Customer Code访问Dataset
  • 原文地址:https://www.cnblogs.com/answerwinner/p/6242100.html
Copyright © 2011-2022 走看看