We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c2aae7 commit afecc2aCopy full SHA for afecc2a
Runtime/Game/Resources/LootLockerConfig.cs
@@ -121,6 +121,11 @@ static void StoreSDKVersion()
121
EditorApplication.update += ListRequestProgress;
122
}
123
124
+ private class LLPackageDescription
125
+ {
126
+ public string version;
127
+ }
128
+
129
static void ListRequestProgress()
130
{
131
if (ListInstalledPackagesRequest.IsCompleted)
@@ -134,6 +139,11 @@ static void ListRequestProgress()
134
139
break;
135
140
136
141
142
143
+ if (string.IsNullOrEmpty(LootLockerConfig.current.sdk_version))
144
145
+ LootLockerConfig.current.sdk_version = LootLockerJson.DeserializeObject<LLPackageDescription>(File.ReadAllText("Assets/LootLockerSDK/package.json")).version;
146
137
147
138
148
149
#endif
0 commit comments