File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -475,7 +475,17 @@ function Install-UnitySetupInstance {
475
475
$localDestinations += , $Destination
476
476
}
477
477
else {
478
- $localDestinations += , " C:\Program Files\Unity-$ ( $i.Version ) "
478
+ switch (Get-OperatingSystem ) {
479
+ ([OperatingSystem ]::Windows) {
480
+ $localDestinations += , " C:\Program Files\Unity\Hub\Editor\$ ( $i.Version ) "
481
+ }
482
+ ([OperatingSystem ]::Linux) {
483
+ throw " Install-UnitySetupInstance has not been implemented on the Linux platform. Contributions welcomed!" ;
484
+ }
485
+ ([OperatingSystem ]::Mac) {
486
+ $localDestinations += , " /Applications/Unity/Hub/Editor/$ ( $i.Version ) "
487
+ }
488
+ }
479
489
}
480
490
481
491
if ( Test-Path $destPath ) {
@@ -617,7 +627,7 @@ function Get-UnitySetupInstance {
617
627
}
618
628
([OperatingSystem ]::Mac) {
619
629
if (-not $BasePath ) {
620
- $BasePath = @ (' /Applications/Unity*' )
630
+ $BasePath = @ (' /Applications/Unity*' , ' /Applications/Unity/Hub/Editor/* ' )
621
631
}
622
632
$ivyPath = ' Unity.app/Contents/UnityExtensions/Unity/Networking/ivy.xml'
623
633
}
You can’t perform that action at this time.
0 commit comments