File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -775,12 +775,18 @@ function Start-UnityEditor {
775
775
# clone the shared args list
776
776
$unityArgs = $sharedArgs | ForEach-Object { $_ }
777
777
if ( $instanceArgs [$i ] ) { $unityArgs += $instanceArgs [$i ] }
778
+
778
779
$setProcessArgs = @ {
779
780
' FilePath' = $editor ;
780
781
' PassThru' = $true ;
781
782
' ErrorAction' = ' Stop' ;
783
+ ' RedirectStandardOutput' = New-TemporaryFile ;
784
+ ' RedirectStandardError' = New-TemporaryFile ;
782
785
}
783
786
787
+ Write-Verbose " Redirecting standard output to $ ( $setProcessArgs [' RedirectStandardOutput' ]) "
788
+ Write-Verbose " Redirecting standard error to $ ( $setProcessArgs [' RedirectStandardError' ]) "
789
+
784
790
if ($unityArgs -and $unityArgs.Length -gt 0 ) {
785
791
$setProcessArgs [' ArgumentList' ] = $unityArgs
786
792
}
You can’t perform that action at this time.
0 commit comments