@@ -1761,7 +1761,15 @@ function Start-UnityEditor {
1761
1761
[parameter (Mandatory = $false )]
1762
1762
[switch ]$Wait ,
1763
1763
[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
1765
1773
)
1766
1774
process {
1767
1775
switch - wildcard ( $PSCmdlet.ParameterSetName ) {
@@ -1855,6 +1863,14 @@ function Start-UnityEditor {
1855
1863
if ( $RunTests ) { $sharedArgs += ' -runTests' }
1856
1864
if ( $ForceFree ) { $sharedArgs += ' -force-free' }
1857
1865
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
+ }
1858
1874
1859
1875
[string [][]]$instanceArgs = @ ()
1860
1876
foreach ( $p in $projectInstances ) {
0 commit comments