1. Unity Resource Extraction Tool: disunity
: Https://github.com/ata4/disunity
Usage: Java-jar disunity. Jar extract/.../*. Assets
2. For textures in the KTX format, we can convert them to the PNG format.
Tool: powervr tools and SDK Components
: Http://community.imgtec.com/developers/powervr/installers/
In the pvrtextoolgui, you can directly open the KTX texture and save it as PNG. You can also use the command line tool pvrtextoolcli under the CLI directory for batch conversion.
Appendix: A shell script for batch conversion.
#!/bin/bashfunction convert(){ shopt -s nullglob for file in $(find . -name '*.ktx') do /Applications/Imagination/PowerVR/GraphicsSDK/PVRTexTool/CLI/OSX_x86/PVRTexToolCLI -i $file -d -f r8g8b8a8 done}convert
Note:
1. The common practice on the Internet is to use pvrtextoolcli to convert KTX to PVR, and then convert PVR to PNG using texturepacker. In fact, this is not necessary. Here we directly use pvrtextoolcli to convert KTX to PNG.
2. You can use
for %f in (*.ktx) do PVRTexToolCLI.exe -i "%f" -d -f r8g8b8a8
Unity resource extraction + convert KTX textures to PNG