Skip to content

开启子进程之前,需要Pack All Atlases。避免每个子进程都重复pack一遍 #6

@qiulirui

Description

@qiulirui

重现步骤:
1、先把Library/AtlasCache里面的文件都删除
2、打包AssetBundle
3、会发现每个子进程的日志(log_0.txt、log_1.txt)里面都有“Processing Atlas”,而且数量都等于工程中的图集数量。应该是重复打包图集了。耗时很长。

环境:unity2020.1.17,Sprite Atlas V1,BuildTarget是Android。

我的解决方法:开启子进程之前,UnityEditor.U2D.SpriteAtlasUtility.PackAllAtlases(target, false)提前打图集。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions