【bat】Unity打包批处理Bat

论坛 期权论坛 期权     
选择匿名的用户   2021-6-2 18:03   6327   0

BAT

注意不能写空格

时间
set h1=%time:~0,2%
set m1=%time:~3,2%
set s1=%time:~6,2%

标题
title XXXXX,Time: %h1%:%m1%:%s1%

删除
rd XX\XX /s /q

设置变量
set unity="C:\Unity\Editor\Unity.exe

启动unity方法
%unity% -batchmode -projectPath %projectClient% -excuteMethod XXX.XX(类.方法) -参数 -logFile ./Log/log.txt

躺过的坑

Unity在Editor模式加载AssetBundle报错闪退,报[Position out of bounds!] https://blog.csdn.net/u014528558/article/details/104432232

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:3875789
帖子:775174
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP