Unity Chinese resolve this AssetBundle

 Unity provides many useful tool in its installation directory, stored in unity installation directory: Editor / Data / Tools, wherein in the path and WebExtract.ext binary2text.exe package can parse out Text Asset AssetBundle, that is, binary ab deserialized into its original text format.

 Using these two exe application, we will be able to understand what each patch to play out in the end is the internal text AB, and then troubleshoot problems that occur when game update. But when parsing procedure more complicated, so I find time to write a bat script, automate analytical (Incidentally recalled batch syntax = =), the specific bat script is as follows:

@echo OFF
:LOOP
    :: 使用方式:将脚本直接放到C:\Users\lin\AppData\Roaming\Microsoft\Windows\SendTo目录下,后续即可通过右键AB,点击“发送到” 选择对应的脚本
    rem 前提是将下方的webExtractPath和binary2testPath变量的unity路径替换成你本地unity安装目录

    set webExtractPath=C:\"Program Files\Unity565\Editor\Data\Tools\WebExtract.exe"
    set binary2testPath=C:\"Program Files\Unity565\Editor\Data\Tools\binary2text.exe"
    set filePath=%1
    set transitionFolder=%filePath%_data
    
    if not exit %webExtractPath% (
        echo 不存在%webExtractPath%
        goto END
    )
    if not exit %binary2testPath% (
        echo 不存在%binary2testPath%
        goto END
    )   
    if %filePath%! == ! (
        goto END
    )
    call %webExtractPath% %filePath%
    echo 生成文本文件
    choice /t 1 /d y

    for /f "delims=" %%i in ('dir /b/a-d/s %transitionFolder%\*') do (
        call %binary2testPath% %%i
    )
    echo 已生成到同目录%~nx1%_data下
    shift
    goto LOOP

:END
    echo Done!
pause

Fast and useful, open bags of instant

Guess you like

Origin www.cnblogs.com/five-wood/p/11980460.html