Skip to content

Commit 0c17537

Browse files
committed
Update scripts to be compatible with 2022.3
1 parent b7d3791 commit 0c17537

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Assets/Scripts/Editor/BuildScript.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,10 @@ public static void Build(string[] args)
108108
#else
109109
PlayerSettings.WebGL.debugSymbols = true;
110110
#endif
111+
112+
#if UNITY_2022_2_OR_NEWER
113+
PlayerSettings.WebGL.showDiagnostics = true;
114+
#endif
111115
buildPlayerOptions.options |= BuildOptions.Development;
112116
}
113117
else

Assets/Scripts/Editor/UnityPackageScripts.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,9 @@ private static void UpdatePackages()
108108

109109
string latestVersion = IncludePrereleases ?
110110
package.versions.latestCompatible :
111-
#if UNITY_2019_3_OR_NEWER
111+
#if UNITY_2022_3_OR_NEWER
112+
package.versions.recommended;
113+
#elif UNITY_2019_3_OR_NEWER
112114
package.versions.verified;
113115
#else
114116
package.versions.recommended;

0 commit comments

Comments
 (0)