File tree Expand file tree Collapse file tree 3 files changed +59
-1
lines changed Expand file tree Collapse file tree 3 files changed +59
-1
lines changed Original file line number Diff line number Diff line change @@ -4,3 +4,4 @@ __pycache__/
44* .egg-info
55dump
66generated /
7+ .DS_Store
Original file line number Diff line number Diff line change @@ -10,6 +10,63 @@ Used in
1010- https://github.com/mos9527/sssekai_blender_io/
1111 - Used for TransportDefine in https://github.com/mos9527/sssekai_blender_io/tree/master/scripts/rla_transport_defines/generated
1212## Usage
13+ ### Installation
14+ ``` bash
15+ pip install UnityPyTypetreeCodegen
16+ ```
17+ ### Generating code
18+ - You can generate code from a TypeTree JSON dump generated with https://github.com/K0lb3/TypeTreeGenerator
19+ ``` bash
20+ UnityPyTypetreeCodegen --json " path_to_typetree_json_dump" --output " generated_moudle_path"
21+ ```
22+ - Or dump the TypeTree using https://github.com/UnityPy-Org/TypeTreeGeneratorAPI automatically (WIP)
23+ ``` bash
24+ UnityPyTypetreeCodegen --files " path_to_Assembly-CSharp_and_other_mono_dlls" --output " generated_moudle_path"
25+ ```
26+ - The emitted module will be structured like this
27+ ```
28+ generated
29+ ├── __init__.py
30+ └── Live2D
31+ └── Cubism
32+ ├── Core
33+ │ ├── __init__.py
34+ │ └── Unmanaged
35+ │ └── __init__.py
36+ ├── Framework
37+ │ ├── __init__.py
38+ │ ├── Expression
39+ │ │ └── __init__.py
40+ │ ├── HarmonicMotion
41+ │ │ └── __init__.py
42+ │ ├── Json
43+ │ │ └── __init__.py
44+ │ ├── LookAt
45+ │ │ └── __init__.py
46+ │ ├── Motion
47+ │ │ └── __init__.py
48+ │ ├── MotionFade
49+ │ │ └── __init__.py
50+ │ ├── MouthMovement
51+ │ │ └── __init__.py
52+ │ ├── Physics
53+ │ │ └── __init__.py
54+ │ ├── Pose
55+ │ │ └── __init__.py
56+ │ ├── Raycasting
57+ │ │ └── __init__.py
58+ │ ├── Tasking
59+ │ │ └── __init__.py
60+ │ └── UserData
61+ │ └── __init__.py
62+ └── Rendering
63+ ├── __init__.py
64+ └── Masking
65+ └── __init__.py
66+
67+ 20 directories, 18 files
68+ ```
69+ ### Using the generated module
1370Example usage in ` rla_transport_defines `
1471``` python
1572env = UnityPy.load(... )
Original file line number Diff line number Diff line change 1- __version__ = (0 , 0 , 8 )
1+ __version__ = (0 , 0 , 9 )
You can’t perform that action at this time.
0 commit comments