Skip to content

Commit dd03ec0

Browse files
Add AdditionalArguments flag
This flag allows you to provide additional arguments for unity command line. This is useful for cases where we do not support unity command line flags. It is also useful for providing arbitrary arguments alongside ExecuteMethod.
1 parent 3e9b623 commit dd03ec0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

UnitySetup/UnitySetup.psm1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -754,6 +754,8 @@ function Get-UnityProjectInstance {
754754
Force operation as though $PWD is not a unity project.
755755
.PARAMETER ExecuteMethod
756756
The script method for the Unity Editor to execute.
757+
.PARAMETER AdditionalArguments
758+
Additiong arguments for Unity or your custom method
757759
.PARAMETER OutputPath
758760
The output path that the Unity Editor should use.
759761
.PARAMETER LogFile
@@ -825,6 +827,8 @@ function Start-UnityEditor {
825827
[parameter(Mandatory = $false)]
826828
[string]$ExecuteMethod,
827829
[parameter(Mandatory = $false)]
830+
[string]$AdditionalArguments,
831+
[parameter(Mandatory = $false)]
828832
[string[]]$ExportPackage,
829833
[parameter(Mandatory = $false)]
830834
[string]$ImportPackage,
@@ -962,6 +966,7 @@ function Start-UnityEditor {
962966
if ( $TestResults ) { $sharedArgs += '-testResults', $TestResults }
963967
if ( $RunTests ) { $sharedArgs += '-runTests' }
964968
if ( $ForceFree) { $sharedArgs += '-force-free' }
969+
if ( $AdditionalArguments) { $sharedArgs += $AdditionalArguments }
965970

966971
$instanceArgs = @()
967972
foreach ( $p in $projectInstances ) {

0 commit comments

Comments
 (0)