@@ -754,6 +754,8 @@ function Get-UnityProjectInstance {
754
754
Force operation as though $PWD is not a unity project.
755
755
. PARAMETER ExecuteMethod
756
756
The script method for the Unity Editor to execute.
757
+ . PARAMETER AdditionalArguments
758
+ Additional arguments for Unity or your custom method
757
759
. PARAMETER OutputPath
758
760
The output path that the Unity Editor should use.
759
761
. PARAMETER LogFile
@@ -795,7 +797,7 @@ function Get-UnityProjectInstance {
795
797
. EXAMPLE
796
798
Start-UnityEditor -Version 2017.3.0f3
797
799
. EXAMPLE
798
- Start-UnityEditor -ExecuteMethod Build.Invoke -BatchMode -Quit -LogFile .\build.log -Wait
800
+ Start-UnityEditor -ExecuteMethod Build.Invoke -BatchMode -Quit -LogFile .\build.log -Wait -AdditionalArguments "-BuildArg1 -BuildArg2"
799
801
. EXAMPLE
800
802
Get-UnityProjectInstance -Recurse | Start-UnityEditor -BatchMode -Quit
801
803
. EXAMPLE
@@ -825,6 +827,8 @@ function Start-UnityEditor {
825
827
[parameter (Mandatory = $false )]
826
828
[string ]$ExecuteMethod ,
827
829
[parameter (Mandatory = $false )]
830
+ [string ]$AdditionalArguments ,
831
+ [parameter (Mandatory = $false )]
828
832
[string []]$ExportPackage ,
829
833
[parameter (Mandatory = $false )]
830
834
[string ]$ImportPackage ,
@@ -962,6 +966,7 @@ function Start-UnityEditor {
962
966
if ( $TestResults ) { $sharedArgs += ' -testResults' , $TestResults }
963
967
if ( $RunTests ) { $sharedArgs += ' -runTests' }
964
968
if ( $ForceFree ) { $sharedArgs += ' -force-free' }
969
+ if ( $AdditionalArguments ) { $sharedArgs += $AdditionalArguments }
965
970
966
971
$instanceArgs = @ ()
967
972
foreach ( $p in $projectInstances ) {
0 commit comments