CmdPackSpriteAtlas.cs 445 B

123456789101112131415
  1. namespace XGame.Editor.Build
  2. {
  3. [BuildCommand((uint)BuildCommandPriority.PackSpriteAtlas)]
  4. class CmdPackSpriteAtlas : BaseBuildCommand, ICommandExecuter
  5. {
  6. public BuildErrorCode Execute()
  7. {
  8. //收集资源信息
  9. XBuildPipeline.GenerateAddressable();
  10. //创建图集配置
  11. XBuildPipeline.GenerateAtlas();
  12. return BuildErrorCode.CmdCompleted;
  13. }
  14. }
  15. }