1 | # Spicy Pixel Unity Kit JS
|
2 |
|
3 | This kit wraps access to the Unity Editor in a JavaScript library so it can be integrated in build scripts for continuous integration.
|
4 |
|
5 | ## Unity Editor
|
6 |
|
7 | ```javascript
|
8 | export default class UnityEditor {
|
9 | constructor();
|
10 | static editorPath: string;
|
11 | static enginePath: string;
|
12 | static batchModeArgs: string[];
|
13 | }
|
14 | ```
|
15 |
|
16 | ## Unity Project
|
17 |
|
18 | ```javascript
|
19 | export default class UnityProject {
|
20 | constructor(projectPath: string);
|
21 | projectPath: string;
|
22 | assetsPath: string;
|
23 | createAsync();
|
24 | packageAsync(sourcePaths: string[], outputPath: string);
|
25 | }
|
26 | ```
|
27 |
|
28 | ## Unity Module Manager
|
29 |
|
30 | ```javascript
|
31 | export default class UnityModuleManager {
|
32 | constructor(unityProject: UnityProject, moduleVendor: string, moduleName: string);
|
33 | get modulePath(): string;
|
34 | async updateAsync(nodeScope: string, nodeModuleName: string,
|
35 | assemblyNames: string[], editorAssemblyNames?: string[]);
|
36 | async installAsync();
|
37 | async packageAsync();
|
38 | }
|
39 | ``` |
\ | No newline at end of file |