Skip to content

Commit 7aaee15

Browse files
author
jossanta
committed
Add unity accelerator parameters
1 parent 4c4041a commit 7aaee15

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

UnitySetup/UnitySetup.psm1

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1761,7 +1761,15 @@ function Start-UnityEditor {
17611761
[parameter(Mandatory = $false)]
17621762
[switch]$Wait,
17631763
[parameter(Mandatory = $false)]
1764-
[switch]$PassThru
1764+
[switch]$PassThru,
1765+
[parameter(Mandatory = $false)]
1766+
[string]$CacheServerEndpoint,
1767+
[parameter(Mandatory = $false)]
1768+
[string]$CacheServerNamespacePrefix,
1769+
[parameter(Mandatory = $false)]
1770+
[switch]$CacheServerDisableDownload,
1771+
[parameter(Mandatory = $false)]
1772+
[switch]$CacheServerDisableUpload
17651773
)
17661774
process {
17671775
switch -wildcard ( $PSCmdlet.ParameterSetName ) {
@@ -1855,6 +1863,14 @@ function Start-UnityEditor {
18551863
if ( $RunTests ) { $sharedArgs += '-runTests' }
18561864
if ( $ForceFree) { $sharedArgs += '-force-free' }
18571865
if ( $AdditionalArguments) { $sharedArgs += $AdditionalArguments }
1866+
if ( $CacheServerEndpoint) {
1867+
$sharedArgs += "-cacheServerEndpoint", $CacheServerEndpoint
1868+
$sharedArgs += "-adb2"
1869+
$sharedArgs += "-enableCacheServer"
1870+
if ( $CacheServerNamespacePrefix) { $sharedArgs += "-cacheServerNamespacePrefix", $CacheServerNamespacePrefix}
1871+
$sharedArgs += "-cacheServerEnableDownload", $(If ($CacheServerDisableDownload) {"false"} Else {"true"})
1872+
$sharedArgs += "-cacheServerEnableUpload", $(If ($CacheServerDisableUpload) {"false"} Else {"true"})
1873+
}
18581874

18591875
[string[][]]$instanceArgs = @()
18601876
foreach ( $p in $projectInstances ) {

0 commit comments

Comments
 (0)