You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4f80733
Browse filesBrowse the repository at this point in the historyBrowse files
It's highly recommended to install following modules to enjoy the full power of UnityPy.
20
-
21
-
All texture modules use [Cython](https://cython.org/), so they won't work on some systems.
22
34
23
-
Windows users have to install [Microsoft Visual C++ 14.0 Build Tools Only](http://go.microsoft.com/fwlink/?LinkId=691126&fixForIE=.exe) to be able to use Cython.
24
-
25
-
*[python-fsb5](https://github.com/HearthSim/python-fsb5) - FSB Audio Sample Support
35
+
*[python-fsb5](https://github.com/HearthSim/python-fsb5) - required to extract samples from AudioClips
26
36
```cmd
27
37
pip install fsb5
28
38
```
29
39
40
+
**Cython required**
41
+
42
+
All of the following packages decompress specific texture formats and require [Cython](https://cython.org/).
43
+
44
+
It's highly recommended to install the following modules to enjoy the full power of UnityPy.
45
+
46
+
Windows users have to install [Microsoft Visual C++ 14.0 Build Tools Only](http://go.microsoft.com/fwlink/?LinkId=691126&fixForIE=.exe) to be able to use Cython.
47
+
48
+
49
+
30
50
*[decrunch](https://github.com/HearthSim/decrunch) - crunch texture support
31
-
```cmd
32
-
pip install decrunch
33
-
```
34
51
*[etcpack](https://github.com/K0lb3/etcpack) - ETC texture support
35
-
```cmd
36
-
pip install etcpack
37
-
```
38
52
*[pvrtc_decoder](https://github.com/K0lb3/pvrtc_decoder) - PVRTC Texture Support
39
-
```cmd
40
-
pip install pvrtc_decoder
41
-
```
42
53
*[astc_decomp](https://github.com/K0lb3/astc_decomp) - ASTC Texture Support
dest = os.path.join(destination_folder, data.name)
89
+
90
+
# make sure that the extension is correct
91
+
# you probably only want to do so with images/textures
92
+
dest, ext = os.path.splitext(dest)
93
+
dest = dest +".png"
94
+
95
+
img = data.image
96
+
img.save(dest)
97
+
```
98
+
99
+
You probably have to read [Important Classes](https://github.com/K0lb3/UnityPy#important-classes)
100
+
and [Important Object Types](https://github.com/K0lb3/UnityPy#important-object-types) to understand how it works.
101
+
102
+
People who have slightly advanced python skills should take a look at [AssetBatchConverter.py](https://github.com/K0lb3/UnityPy/blob/master/AssetBatchConverter.py) for a more advanced example.
Objects contain the *actual* files which, e.g. textures, text files, meshes, settings, ...
140
+
141
+
To acquire the actual data of an object it has to be read first, this happens via the ``.read()`` function. This isn't done automatically to save time because only a small part of the objects are of interest.
142
+
143
+
## Important Object Types
144
+
145
+
All object types can be found in [UnityPy/classes](https://github.com/K0lb3/UnityPy/tree/master/UnityPy/classes).
0 commit comments