Unity
@reset/unityv2026.10.20.1
01README
Drive the Unity Editor in batch mode with its documented command-line arguments: resolve the project's editor, compile and read the compiler diagnostics, run the Unity Test Framework and read its NUnit results, and run a project's build method, each written as a resource a workflow can assert on.
02Behaviors
@reset/unityv2026.10.20.1unity.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| projectPath | string | |
| timeoutSeconds? | number | |
| logDir? | string |
fn version()
Read ProjectSettings/ProjectVersion.txt and resolve the editor executable for that version, recording whether it exists
fn compile(maxDiagnostics?: number)
Open the project in batch mode and quit, recording the compiler errors and warnings from the editor log
| Argument | Type | Description |
|---|---|---|
| maxDiagnostics? | number |
fn test(maxFailures?: number)
Run the project's tests with the Unity Test Framework and record the totals and failures from its NUnit result file
| Argument | Type | Description |
|---|---|---|
| maxFailures? | number |
fn build(extraArgs?: array)
Run a static build method the project supplies with -executeMethod for a build target, and record the outcome
| Argument | Type | Description |
|---|---|---|
| extraArgs? | array |
Resources
version(30d)— The project's editor version and the editor executable chosen for it, with whether it exists
compile(infinite)— One batch-mode open of the project: compiler error and warning counts, the first diagnostics, the exit code and a bounded log excerpt
test(infinite)— One Unity Test Framework run: the totals from its NUnit result file, the failed tests with messages, the exit code and a bounded log excerpt
build(infinite)— One -executeMethod build run: the method, target, exit code, duration and a bounded log excerpt
03Stats
A
100 / 100
Downloads
1
Archive size
22.0 KB
- Has README or module doc2/2earned
- README has a code example1/1earned
- README is substantive1/1earned
- Most symbols documented1/1earned
- No slow types (deprecated)1/1earned
- Dependencies pass trust audit2/2earned
- Has description1/1earned
- Platform support declared (or universal)2/2earned
- License2/2earned
- Verified public repository2/2earned
deno-command1 accepted
Spawns a subprocess with Deno.Command().
- models/unity.ts:386 — the editor executable is the only way to drive Unity in batch mode, and its arguments are the validated global and method arguments plus paths this module chose
behavior-spelling1 accepted
- (extension) — Written against swamp 20261020.024627.0, the release that added the behavior spelling. Consumers on an older swamp are not supported.
05Platforms
06Labels