22.构建布局报告

  1. 22.其他_窗口相关_构建布局报告
    1. 22.1 知识点
      1. 构建布局报告有什么作用
      2. 如何查看构建布局报告
      3. 构建布局报告的内容
        1. 内容中主要包含:
        2. buildlayout.txt

22.其他_窗口相关_构建布局报告


22.1 知识点

构建布局报告有什么作用

构建布局报告提供了有关可寻址资源的构建打包的详细信息和统计信息,包括:

  • AB包的描述
  • 每个资源和AB包的大小
  • 解析作为依赖项隐式包含在AB包中的不可寻址资源
  • AB包的依赖关系

我们可以通过查看报告文件获取这些信息。

如何查看构建布局报告

  1. 启用调试构建布局功能:

    • Edit > Preferences > Addressables
    • 启用 Debug Build Layout
  2. 只要我们构建打包可寻址资源后,就可以在 Library/com.unity.addressables/ 文件夹中找到 buildlayout.txt 文件。

构建布局报告的内容

内容中主要包含:

  1. 摘要信息(包括AB包数量、大小等等)
  2. 每组相关信息(哪些资源,几个包,包大小等等)
  3. 依赖相关信息

buildlayout.txt

WARNING! The formatting in this file may change in future package versions.
Unity Version: 2020.3.48f1c1
com.unity.addressables: 1.18.19
Summary
    Addressable Groups: 18
    Explicit Assets Addressed: 19
    Total Bundle: 13 (1 Scene Bundles, 12 Non-Scene Bundles)
    Total Build Size: 218.81KB
    Total MonoScript Size: 0B
    Total AssetBundle Object Size: 4.03KB

Group Built In Data (Bundles: 0, Total Size: 0B, Explicit Asset Count: 0)
    Schemas
        PlayerDataGroupSchema
Group Default Local Group (Bundles: 0, Total Size: 0B, Explicit Asset Count: 0)
    Schemas
        ContentUpdateGroupSchema
        BundledAssetGroupSchema (PackingMode: PackTogether, Compression: LZ4)
Group GameObject (Bundles: 1, Total Size: 4.36KB, Explicit Asset Count: 1)
    Schemas
        BundledAssetGroupSchema (PackingMode: PackTogether, Compression: LZ4)
        ContentUpdateGroupSchema
    Archive gameobject_assets_all_e29bae9ce561492b5c81990d751eb0d2.bundle (Size: 4.36KB, Compression: Lz4HC, Asset Bundle Object Size: 352B)
        Bundle Dependencies: defaultlocalgroup_unitybuiltinshaders_e8b59a5018e85c82654c3625a1785346.bundle
        Expanded Bundle Dependencies: 
        Explicit Assets
            Assets/ArtRes/GameObject/Capsule.prefab (Total Size: 371B, Size from Objects: 371B, Size from Streamed Data: 0B, File Index: 0, Addressable Name: Cube)
                Internal References: Resources/unity_builtin_extra
        Files:
            File 0 (MonoScripts: 0, MonoScript Size: 0B)
                CAB-4ee984792308e73730513dd59593e8f4 (Size: 12.11KB)
                Data From Other Assets (1)
                    Resources/unity_builtin_extra (Size: 1.03KB, Size from Objects: 1.03KB, Size from Streamed Data: 0B, Object Count: 1)
                        Referencing Assets: Assets/ArtRes/GameObject/Capsule.prefab
Group Sprite (Bundles: 1, Total Size: 17.31KB, Explicit Asset Count: 3)
    Schemas
        BundledAssetGroupSchema (PackingMode: PackTogether, Compression: LZ4)
        ContentUpdateGroupSchema
    Archive sprite_assets_all_7c78f2cc80cfc81625df07d1cbe43870.bundle (Size: 17.31KB, Compression: Lz4HC, Asset Bundle Object Size: 532B)
        Bundle Dependencies: 
        Expanded Bundle Dependencies: 
        Explicit Assets
            Assets/ArtRes/UI/bk.png (Total Size: 38.3KB, Size from Objects: 808B, Size from Streamed Data: 37.52KB, File Index: 0, Addressable Name: bk)
            Assets/ArtRes/UI/quanlity_0.png (Total Size: 38.32KB, Size from Objects: 824B, Size from Streamed Data: 37.52KB, File Index: 0, Addressable Name: quanlity_0)
            Assets/ArtRes/UI/quanlity_1.png (Total Size: 38.32KB, Size from Objects: 824B, Size from Streamed Data: 37.52KB, File Index: 0, Addressable Name: quanlity_1)
        Files:
            File 0 (MonoScripts: 0, MonoScript Size: 0B)
                CAB-ee3b1eec5184a43f21a9a3e5be426ea5 (Size: 13.23KB)
                CAB-ee3b1eec5184a43f21a9a3e5be426ea5.resS (Size: 112.55KB)
                Data From Other Assets (0)
Group Atlas (Bundles: 1, Total Size: 14.93KB, Explicit Asset Count: 1)
    Schemas
        BundledAssetGroupSchema (PackingMode: PackTogether, Compression: LZ4)
        ContentUpdateGroupSchema
    Archive atlas_assets_all_a046fc041cf9154843d7e938e493d2e8.bundle (Size: 14.93KB, Compression: Lz4HC, Asset Bundle Object Size: 260B)
        Bundle Dependencies: 
        Expanded Bundle Dependencies: 
        Explicit Assets
            Assets/ArtRes/Altas/SpriteAtlas1.spriteatlas (Total Size: 592B, Size from Objects: 592B, Size from Streamed Data: 0B, File Index: 0, Addressable Name: SpriteAtlas1)
                Internal References: Library/AtlasCache/3f/3f0ea7437c6013c7e9275ff961b84690, Assets/ArtRes/UI/quanlity_2.png, Assets/ArtRes/UI/quanlity_4.png, Assets/ArtRes/UI/quanlity_3.png, Assets/ArtRes/UI/quanlity_5.png
        Files:
            File 0 (MonoScripts: 0, MonoScript Size: 0B)
                CAB-7ed2965aa4f1220305d55e0c4ef40cc6 (Size: 16.38KB)
                CAB-7ed2965aa4f1220305d55e0c4ef40cc6.resS (Size: 64KB)
                Data From Other Assets (5)
                    Assets/ArtRes/UI/quanlity_4.png (Size: 608B, Size from Objects: 608B, Size from Streamed Data: 0B, Object Count: 1)
                        Referencing Assets: Assets/ArtRes/Altas/SpriteAtlas1.spriteatlas
                    Assets/ArtRes/UI/quanlity_2.png (Size: 608B, Size from Objects: 608B, Size from Streamed Data: 0B, Object Count: 1)
                        Referencing Assets: Assets/ArtRes/Altas/SpriteAtlas1.spriteatlas
                    Assets/ArtRes/UI/quanlity_5.png (Size: 608B, Size from Objects: 608B, Size from Streamed Data: 0B, Object Count: 1)
                        Referencing Assets: Assets/ArtRes/Altas/SpriteAtlas1.spriteatlas
                    Library/AtlasCache/3f/3f0ea7437c6013c7e9275ff961b84690 (Size: 64.26KB, Size from Objects: 264B, Size from Streamed Data: 64KB, Object Count: 1)
                        Referencing Assets: Assets/ArtRes/Altas/SpriteAtlas1.spriteatlas
                    Assets/ArtRes/UI/quanlity_3.png (Size: 608B, Size from Objects: 608B, Size from Streamed Data: 0B, Object Count: 1)
                        Referencing Assets: Assets/ArtRes/Altas/SpriteAtlas1.spriteatlas
Group Texture (Bundles: 1, Total Size: 8.05KB, Explicit Asset Count: 3)
    Schemas
        BundledAssetGroupSchema (PackingMode: PackTogether, Compression: LZ4)
        ContentUpdateGroupSchema
    Archive texture_assets_all_c4ac75c9b96b77fbde4f66749f38c529.bundle (Size: 8.05KB, Compression: Lz4HC, Asset Bundle Object Size: 368B)
        Bundle Dependencies: 
        Expanded Bundle Dependencies: 
        Explicit Assets
            Assets/ArtRes/UI/ui_TY_daojudiban_01.png (Total Size: 85.59KB, Size from Objects: 240B, Size from Streamed Data: 85.36KB, File Index: 0, Addressable Name: Cube)
            Assets/ArtRes/UI/ui_TY_fanhui_01.png (Total Size: 5.59KB, Size from Objects: 236B, Size from Streamed Data: 5.36KB, File Index: 0, Addressable Name: Texture2)
            Assets/ArtRes/UI/ui_TY_di_shensebj_01.png (Total Size: 1.59KB, Size from Objects: 240B, Size from Streamed Data: 1.36KB, File Index: 0, Addressable Name: Texture3)
        Files:
            File 0 (MonoScripts: 0, MonoScript Size: 0B)
                CAB-2c387b1987facae5702333e8b8ae22e6 (Size: 5.5KB)
                CAB-2c387b1987facae5702333e8b8ae22e6.resS (Size: 92.08KB)
                Data From Other Assets (0)
Group Material (Bundles: 1, Total Size: 2.61KB, Explicit Asset Count: 3)
    Schemas
        BundledAssetGroupSchema (PackingMode: PackTogether, Compression: LZ4)
        ContentUpdateGroupSchema
    Archive material_assets_all_77b9fb878961752456e089a5adc22bd6.bundle (Size: 2.61KB, Compression: Lz4HC, Asset Bundle Object Size: 456B)
        Bundle Dependencies: defaultlocalgroup_unitybuiltinshaders_e8b59a5018e85c82654c3625a1785346.bundle
        Expanded Bundle Dependencies: 
        Explicit Assets
            Assets/ArtRes/Material/Blue.mat (Total Size: 892B, Size from Objects: 892B, Size from Streamed Data: 0B, File Index: 0, Addressable Name: Hat)
            Assets/ArtRes/Material/Red.mat (Total Size: 892B, Size from Objects: 892B, Size from Streamed Data: 0B, File Index: 0, Addressable Name: Hat)
            Assets/ArtRes/Material/White.mat (Total Size: 896B, Size from Objects: 896B, Size from Streamed Data: 0B, File Index: 0, Addressable Name: Hat)
        Files:
            File 0 (MonoScripts: 0, MonoScript Size: 0B)
                CAB-f895d3c0f5a6d29572d665e01f266ab8 (Size: 8.58KB)
                Data From Other Assets (0)
Group Data (Bundles: 1, Total Size: 1.18KB, Explicit Asset Count: 1)
    Schemas
        BundledAssetGroupSchema (PackingMode: PackTogether, Compression: LZ4)
        ContentUpdateGroupSchema
    Archive data_assets_all_02ab99b302f2a05bc417e0f3eba68023.bundle (Size: 1.18KB, Compression: Lz4HC, Asset Bundle Object Size: 204B)
        Bundle Dependencies: 
        Expanded Bundle Dependencies: 
        Explicit Assets
            Assets/ArtRes/Data/Test.txt (Total Size: 12B, Size from Objects: 12B, Size from Streamed Data: 0B, File Index: 0, Addressable Name: Test)
        Files:
            File 0 (MonoScripts: 0, MonoScript Size: 0B)
                CAB-961cd337be791f8f490301b06abd52b1 (Size: 4.21KB)
                Data From Other Assets (0)
Group Lua (Bundles: 1, Total Size: 2.06KB, Explicit Asset Count: 1)
    Schemas
        BundledAssetGroupSchema (PackingMode: PackTogether, Compression: LZ4)
        ContentUpdateGroupSchema
    Archive lua_assets_all_13f01b6e73b516e430eedd1dd2395400.bundle (Size: 2.06KB, Compression: Lz4HC, Asset Bundle Object Size: 220B)
        Bundle Dependencies: 
        Expanded Bundle Dependencies: 
        Explicit Assets
            Assets/ArtRes/Data/Lesson1_CallClass.lua.txt (Total Size: 1.51KB, Size from Objects: 1.51KB, Size from Streamed Data: 0B, File Index: 0, Addressable Name: Lesson1_CallClass.lua)
        Files:
            File 0 (MonoScripts: 0, MonoScript Size: 0B)
                CAB-0f69be762c8d7291decc48b782842625 (Size: 5.72KB)
                Data From Other Assets (0)
Group Music (Bundles: 1, Total Size: 17.63KB, Explicit Asset Count: 1)
    Schemas
        BundledAssetGroupSchema (PackingMode: PackTogether, Compression: LZ4)
        ContentUpdateGroupSchema
    Archive music_assets_all_940fb59e5e37131e88cc1331ecc74120.bundle (Size: 17.63KB, Compression: Lz4HC, Asset Bundle Object Size: 204B)
        Bundle Dependencies: 
        Expanded Bundle Dependencies: 
        Explicit Assets
            Assets/ArtRes/Music/dead.mp3 (Total Size: 156B, Size from Objects: 156B, Size from Streamed Data: 0B, File Index: 0, Addressable Name: dead)
        Files:
            File 0 (MonoScripts: 0, MonoScript Size: 0B)
                CAB-68daa7088abf3023d9c2935d123b9c18 (Size: 4.36KB)
                CAB-68daa7088abf3023d9c2935d123b9c18.resource (Size: 16.28KB)
                Data From Other Assets (0)
Group Controller (Bundles: 1, Total Size: 4.43KB, Explicit Asset Count: 1)
    Schemas
        BundledAssetGroupSchema (PackingMode: PackTogether, Compression: LZ4)
        ContentUpdateGroupSchema
    Archive controller_assets_all_042f91ec942b78aef2d2b2179bd3f850.bundle (Size: 4.43KB, Compression: Lz4HC, Asset Bundle Object Size: 220B)
        Bundle Dependencies: 
        Expanded Bundle Dependencies: 
        Explicit Assets
            Assets/ArtRes/Animator Controller.controller (Total Size: 232B, Size from Objects: 232B, Size from Streamed Data: 0B, File Index: 0, Addressable Name: Animator Controller)
        Files:
            File 0 (MonoScripts: 0, MonoScript Size: 0B)
                CAB-947c75f5aa3e78975c3e09f5259a3f52 (Size: 13.57KB)
                Data From Other Assets (0)
Group Scenes (Bundles: 2, Total Size: 92.28KB, Explicit Asset Count: 2)
    Schemas
        BundledAssetGroupSchema (PackingMode: PackTogether, Compression: LZ4)
        ContentUpdateGroupSchema
    Archive scenes_assets_all_a1b8b4551d7a611ef84e68d9f6843397.bundle (Size: 1.34KB, Compression: Lz4HC, Asset Bundle Object Size: 208B)
        Bundle Dependencies: 
        Expanded Bundle Dependencies: 
        Explicit Assets
            Assets/ArtRes/Data/RoleInfo.json (Total Size: 392B, Size from Objects: 392B, Size from Streamed Data: 0B, File Index: 0, Addressable Name: RoleInfo)
        Files:
            File 0 (MonoScripts: 0, MonoScript Size: 0B)
                CAB-841177ebc1d1f914b5803d9c99e8d1f8 (Size: 4.59KB)
                Data From Other Assets (0)
    Archive scenes_scenes_all_9fc874ecc9d8e904dff1a09cbbda8bec.bundle (Size: 90.93KB, Compression: Lz4HC, Asset Bundle Object Size: 400B)
        Bundle Dependencies: defaultlocalgroup_unitybuiltinshaders_e8b59a5018e85c82654c3625a1785346.bundle
        Expanded Bundle Dependencies: 
        Explicit Assets
            Assets/Addressables教程 参考示例/Reference Scenes/SampleScene.unity (Total Size: 130.24KB, Size from Objects: 2.08KB, Size from Streamed Data: 128.16KB, File Index: 0, Addressable Name: SampleScene)
                Internal References: Resources/unity_builtin_extra
        Files:
            File 0 (PreloadInfoSize: 125B, MonoScripts: 0, MonoScript Size: 0B)
                CAB-f9ef6499cf1a3155ad2ab000bffcb47e.sharedAssets (Size: 8.06KB)
                CAB-f9ef6499cf1a3155ad2ab000bffcb47e (Size: 25.52KB)
                CAB-f9ef6499cf1a3155ad2ab000bffcb47e.resS (Size: 128.16KB)
                Data From Other Assets (1)
                    Resources/unity_builtin_extra (Size: 1.28KB, Size from Objects: 1.28KB, Size from Streamed Data: 0B, Object Count: 2)
                        Referencing Assets: Assets/Addressables教程 参考示例/Reference Scenes/SampleScene.unity
Group Model-Role-Hero (Bundles: 0, Total Size: 0B, Explicit Asset Count: 0)
    Schemas
        BundledAssetGroupSchema (PackingMode: PackTogether, Compression: LZ4)
        ContentUpdateGroupSchema
Group Model-Monster (Bundles: 0, Total Size: 0B, Explicit Asset Count: 0)
    Schemas
        BundledAssetGroupSchema (PackingMode: PackTogether, Compression: LZ4)
        ContentUpdateGroupSchema
Group Model-Role-Pet (Bundles: 0, Total Size: 0B, Explicit Asset Count: 0)
    Schemas
        BundledAssetGroupSchema (PackingMode: PackTogether, Compression: LZ4)
        ContentUpdateGroupSchema
Group Model-King (Bundles: 0, Total Size: 0B, Explicit Asset Count: 0)
    Schemas
        BundledAssetGroupSchema (PackingMode: PackTogether, Compression: LZ4)
        ContentUpdateGroupSchema
Group Packed Assets1 (Bundles: 0, Total Size: 0B, Explicit Asset Count: 0)
    Schemas
        BundledAssetGroupSchema (PackingMode: PackTogether, Compression: LZ4)
        ContentUpdateGroupSchema
Group Content Update (Bundles: 1, Total Size: 4.65KB, Explicit Asset Count: 2)
    Schemas
        BundledAssetGroupSchema (PackingMode: PackTogether, Compression: LZ4)
        ContentUpdateGroupSchema
    Archive contentupdate_assets_all_4ed98d059da260b3691a9247ac8541e8.bundle (Size: 4.65KB, Compression: Lz4HC, Asset Bundle Object Size: 524B)
        Bundle Dependencies: defaultlocalgroup_unitybuiltinshaders_e8b59a5018e85c82654c3625a1785346.bundle
        Expanded Bundle Dependencies: 
        Explicit Assets
            Assets/ArtRes/GameObject/Sphere.prefab (Total Size: 363B, Size from Objects: 363B, Size from Streamed Data: 0B, File Index: 0, Addressable Name: Sphere)
                Internal References: Resources/unity_builtin_extra
            Assets/ArtRes/GameObject/Cylinder.prefab (Total Size: 371B, Size from Objects: 371B, Size from Streamed Data: 0B, File Index: 0, Addressable Name: Cube)
                Internal References: Resources/unity_builtin_extra
        Files:
            File 0 (MonoScripts: 0, MonoScript Size: 0B)
                CAB-513c51a4efb958ab1ded8c0ca25f2001 (Size: 13.33KB)
                Data From Other Assets (1)
                    Resources/unity_builtin_extra (Size: 1.03KB, Size from Objects: 1.03KB, Size from Streamed Data: 0B, Object Count: 1)
                        Referencing Assets: Assets/ArtRes/GameObject/Sphere.prefab, Assets/ArtRes/GameObject/Cylinder.prefab
BuiltIn Bundles
    Archive defaultlocalgroup_unitybuiltinshaders_e8b59a5018e85c82654c3625a1785346.bundle (Size: 49.31KB, Compression: Lz4HC, Asset Bundle Object Size: 180B)
        Bundle Dependencies: 
        Expanded Bundle Dependencies: 
        Explicit Assets
        Files:
            File 0 (MonoScripts: 0, MonoScript Size: 0B)
                CAB-28305f85525aae84b797e79e29fc487e (Size: 147.85KB)
                Data From Other Assets (1)
                    Resources/unity_builtin_extra (Size: 75.01KB, Size from Objects: 75.01KB, Size from Streamed Data: 0B, Object Count: 3)
                        Referencing Assets: 


转载请注明来源,欢迎对文章中的引用来源进行考证,欢迎指出任何有错误或不够清晰的表达。可以在下面评论区评论,也可以邮件至 785293209@qq.com

×

喜欢就点赞,疼爱就打赏