File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -556,6 +556,8 @@ function Start-UnityEditor
556
556
[parameter (Mandatory = $false )]
557
557
[string []]$ExportPackage ,
558
558
[parameter (Mandatory = $false )]
559
+ [string ]$CreateProject ,
560
+ [parameter (Mandatory = $false )]
559
561
[string ]$OutputPath ,
560
562
[parameter (Mandatory = $false )]
561
563
[string ]$LogFile ,
@@ -642,6 +644,7 @@ function Start-UnityEditor
642
644
}
643
645
644
646
$sharedArgs = @ ()
647
+ if ( $CreateProject ) { $sharedArgs += " -createProject" , $CreateProject }
645
648
if ( $ExecuteMethod ) { $sharedArgs += " -executeMethod" , $ExecuteMethod }
646
649
if ( $OutputPath ) { $sharedArgs += " -buildOutput" , $OutputPath }
647
650
if ( $LogFile ) { $sharedArgs += " -logFile" , $LogFile }
@@ -692,7 +695,9 @@ function Start-UnityEditor
692
695
continue
693
696
}
694
697
695
- $unityArgs = $sharedArgs + $instanceArgs [$i ]
698
+ # clone the shared args list
699
+ $unityArgs = $sharedArgs | ForEach-Object { $_ }
700
+ if ( $instanceArgs [$i ] ) { $unityArgs += $instanceArgs [$i ] }
696
701
$setProcessArgs = @ {
697
702
' FilePath' = $editor ;
698
703
' PassThru' = $true ;
You can’t perform that action at this time.
0 commit comments