File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -1092,7 +1092,6 @@ function Get-UnitySetupInstance {
1092
1092
if (-not $BasePath ) {
1093
1093
$BasePath = @ (' C:\Program Files*\Unity*' , ' C:\Program Files\Unity\Hub\Editor\*' )
1094
1094
}
1095
- $ivyPath = ' Editor\Data\UnityExtensions\Unity\Networking\ivy.xml'
1096
1095
}
1097
1096
([OperatingSystem ]::Linux) {
1098
1097
throw " Get-UnitySetupInstance has not been implemented on the Linux platform. Contributions welcomed!" ;
@@ -1101,12 +1100,21 @@ function Get-UnitySetupInstance {
1101
1100
if (-not $BasePath ) {
1102
1101
$BasePath = @ (' /Applications/Unity*' , ' /Applications/Unity/Hub/Editor/*' )
1103
1102
}
1104
- $ivyPath = ' Unity.app/Contents/UnityExtensions/Unity/Networking/ivy.xml'
1105
1103
}
1106
1104
}
1107
1105
1108
1106
foreach ( $folder in $BasePath ) {
1109
- $path = [io.path ]::Combine(" $folder " , $ivyPath );
1107
+
1108
+ if ( Test-Path " $folder \modules.json" ) {
1109
+ $path = $folder
1110
+ }
1111
+ else {
1112
+ $ivy = Get-ChildItem - Path $folder - Filter ivy.xml - Recurse - ErrorAction SilentlyContinue - Force | Select-Object - First 1
1113
+
1114
+ if ( Test-Path $ivy.FullName ) {
1115
+ $path = $ivy.FullName
1116
+ }
1117
+ }
1110
1118
1111
1119
Get-ChildItem $path - Recurse - ErrorAction Ignore |
1112
1120
ForEach-Object {
You can’t perform that action at this time.
0 commit comments