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 @@ -777,12 +777,18 @@ function Start-UnityEditor {
777
777
# clone the shared args list
778
778
$unityArgs = $sharedArgs | ForEach-Object { $_ }
779
779
if ( $instanceArgs [$i ] ) { $unityArgs += $instanceArgs [$i ] }
780
+
780
781
$setProcessArgs = @ {
781
782
' FilePath' = $editor ;
782
783
' PassThru' = $true ;
783
784
' ErrorAction' = ' Stop' ;
785
+ ' RedirectStandardOutput' = New-TemporaryFile ;
786
+ ' RedirectStandardError' = New-TemporaryFile ;
784
787
}
785
788
789
+ Write-Verbose " Redirecting standard output to $ ( $setProcessArgs [' RedirectStandardOutput' ]) "
790
+ Write-Verbose " Redirecting standard error to $ ( $setProcessArgs [' RedirectStandardError' ]) "
791
+
786
792
if ($unityArgs -and $unityArgs.Length -gt 0 ) {
787
793
$setProcessArgs [' ArgumentList' ] = $unityArgs
788
794
}
You can’t perform that action at this time.
0 commit comments