File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -225,6 +225,8 @@ function Select-UnitySetupInstance
225
225
Should the Unity Editor quit after it's done?
226
226
. PARAMETER Wait
227
227
Should the command wait for the Unity Editor to exit?
228
+ . PARAMETER PassThru
229
+ Should the command return the process object? Default is nothing.
228
230
. EXAMPLE
229
231
Start-UnityEditor
230
232
. EXAMPLE
@@ -251,7 +253,9 @@ function Start-UnityEditor
251
253
[parameter (Mandatory = $false )]
252
254
[switch ] $Quit ,
253
255
[parameter (Mandatory = $false )]
254
- [switch ] $Wait
256
+ [switch ] $Wait ,
257
+ [parameter (Mandatory = $false )]
258
+ [switch ] $PassThru
255
259
)
256
260
257
261
if ( $Instance -eq $null )
@@ -330,4 +334,6 @@ function Start-UnityEditor
330
334
throw " Unity quit with non-zero exit code"
331
335
}
332
336
}
337
+
338
+ if ( $PassThru ) { $process }
333
339
}
You can’t perform that action at this time.
0 commit comments