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
Copy file name to clipboardExpand all lines: README.md
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -98,6 +98,17 @@ It is possible to automate code generation by checking Tools/UnityCodeGen/Auto-g
98
98
99
99
When Auto-generate on Compile is on, it will be automatically generated at the end of compilation and will be recompiled only if there is any change in the generated code.
100
100
101
+
## Unity Code Gen Utility
102
+
By using the UnityCodeGenUtility class, it is also possible to operate from your script.
103
+
104
+
```cs
105
+
// get default output folder path
106
+
varpath=UnityCodeGenUtility.defaultFolderPath;
107
+
108
+
// run generation
109
+
UnityCodeGenUtility.Generate();
110
+
```
111
+
101
112
## Advanced
102
113
103
114
### Perform processing on classes with specific attributes added
0 commit comments