反編譯unity project的資源文件,包括ios,android,pc等,僅供學習使用!
工具(任選其一)
1.disunity
編譯版地址:https://github.com/ata4/disunity/releases
源碼版地址:https://github.com/ata4/disunity
條件:
1、需要安裝 Jdk1.7 http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
最常用的命令:
disunity extract F:\SVN\assets\*.unity3d 解包F:\SVN\assets\ 目錄下所有後綴爲.unity3d的資源
disunity extract F:\SVN\assets\* 解包F:\SVN\assets\ 目錄下所有的資源
下載後可查看README.md
Examples
Extract all supported assets from a bundle file:
disunity extract Web.unity3d
Extract all packed files from two bundle files:
disunity bundle-extract episode1.unity3d episode2.unity3d
Extract textures from the asset file sharedassets0.assets:
disunity extract -f texture2d sharedassets0.assets
Dump web player configuration from the file named Web.unity3d:
disunity dump -f playersettings Web.unity3d
Show information about all asset files in the directory "assets":
disunity info assets\*.asset
1.1disunityGUI
disunity GUI(給disunity提供圖形化的窗口操作)
下載地址: https://github.com/Scrivener07/DisunityGuiHelper
注:如果需要重新編譯源代碼需要安裝Visual Studio或MonoDevelop,或其它可以編譯.Net源文件的軟件
如果你本機安裝的JDK不在C盤,請繼續以下步驟
1.1.1 重新編譯
1、用 Visual Studio打開 DisunityGuiHelper.sln
2、雙擊打開Program.cs,修改Jdk的路徑
3、找到LocateJava(),如下圖所示位置
4、修改成自己機器的JDK位置
5、修改完成後,重新編譯生成項目,可選 生成解決方案,或 重新生成解決方案
6、生成前
7、生成後
6、把編譯生成的DisunityGUI.exe文件放在disunity目錄下,雙擊DisunityGUI.exe,就可運行
如果沒和disunity放在同一目錄,會報錯找到不disunity.jar
1.1.2DiunityGUI 使用方法
方法1、點擊 Browse選擇,你要解包的文件
方法2:把你要解包的文件,拖動到 Drag and Drop File區域區
2、在Command 選擇:Execute ,點擊 Execute,等待完成後,解包的資源放在同目錄下
2.unity3d decompiler
Unity3d decompiler - unpack data from the compiled .unity3d project to the specified directory. This item is available for .unity3d projects (Web Player, Web Player Streamed);
http://en.unity3d.netobf.com/unity3d_decompiler
3.UnityAssetsExplorer
可以直接提取*.assets中的資源,保存起來
4.下載地址
這三個工具打包下載地址:http://pan.baidu.com/s/1dDmt5tv