Unity resource extraction + convert KTX texture to PNG, unity + ktx texture png
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(){ 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
How does unity put two png image resources in the project into the scenario (in the upper left corner of the figure )?
Add another camera and change it to a depth camera. depth is greater than the scene camera. Create a plane, drag the image, and put plane before creating the camera.
How does unity put the png Image resource of the compass in the project into the scenario?
Right-click a project to create a material, create an empty object in the scene (ctrl + shift + n), add the mesh filter component to the empty object, and select the model, add the mesh renderer and drag the new material in the materials file.