Skip to content

Commit 31643d1

Browse files
committed
Adds ability to import packages with start-unityeditor
1 parent c574015 commit 31643d1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

UnitySetup/UnitySetup.psm1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -614,6 +614,8 @@ function Start-UnityEditor
614614
[parameter(Mandatory=$false)]
615615
[string[]]$ExportPackage,
616616
[parameter(Mandatory=$false)]
617+
[string]$ImportPackage,
618+
[parameter(Mandatory=$false)]
617619
[string]$CreateProject,
618620
[parameter(Mandatory=$false)]
619621
[string]$OutputPath,
@@ -710,6 +712,7 @@ function Start-UnityEditor
710712
if( $BatchMode ) { $sharedArgs += "-batchmode" }
711713
if( $Quit ) { $sharedArgs += "-quit" }
712714
if( $ExportPackage ) { $sharedArgs += "-exportPackage","$ExportPackage" }
715+
if( $ImportPackage ) { $sharedArgs += "-importPackage","$ImportPackage" }
713716

714717
$instanceArgs = @()
715718
foreach( $p in $projectInstances ) {

0 commit comments

Comments
 (0)