app.hypergames.hypersdk 1.8.0 → 1.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [1.8.2](https://github.com/mvmhyper/hyper-sdk/compare/v1.8.1...v1.8.2) (2026-04-07)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **ui:** adjust canvas scaler match value for landscape to 0.63 ([c8e98ba](https://github.com/mvmhyper/hyper-sdk/commit/c8e98ba2fd112f5501959a3e7dc078fe4dc4cba3))
7
+
8
+ ## [1.8.1](https://github.com/mvmhyper/hyper-sdk/compare/v1.8.0...v1.8.1) (2026-04-02)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * runtime ignores developer's HyperSDKSettings ([26127c1](https://github.com/mvmhyper/hyper-sdk/commit/26127c10c47e64aaa47144c7158833140822cc50))
14
+
1
15
  # [1.8.0](https://github.com/mvmhyper/hyper-sdk/compare/v1.7.1...v1.8.0) (2026-04-02)
2
16
 
3
17
 
@@ -13,8 +13,6 @@ namespace Hyper.Editor
13
13
  {
14
14
  #region Private Fields
15
15
 
16
- private const string PrefKey = "Hyper/Mode";
17
-
18
16
  private static HyperSDKSettings _settings;
19
17
  private UnityEditor.Editor _settingsEditor;
20
18
  private Vector2 _scrollPosition;
@@ -228,6 +228,22 @@ namespace Hyper.Internal
228
228
  return matchingResources[0];
229
229
  }
230
230
 
231
+ // Prefer the project-configured copy over the package template.
232
+ // HyperSDKSettings: configured if the developer has enabled at least one platform/orientation flag.
233
+ if (typeof(T) == typeof(HyperSDKSettings))
234
+ {
235
+ for (int i = 0; i < matchingResources.Count; i++)
236
+ {
237
+ var settings = matchingResources[i] as HyperSDKSettings;
238
+ if (settings != null && settings.IsConfigured)
239
+ {
240
+ return matchingResources[i];
241
+ }
242
+ }
243
+ return matchingResources.Count > 1 ? matchingResources[1] : matchingResources[0];
244
+ }
245
+
246
+ // HyperGameContentConfig: configured if it has a valid game scene assigned.
231
247
  if (typeof(T) == typeof(HyperGameContentConfig))
232
248
  {
233
249
  for (int i = 0; i < matchingResources.Count; i++)
@@ -999,7 +999,7 @@ namespace Hyper.Internal.Managers
999
999
  _canvasScaler = _canvas.GetComponent<CanvasScaler>();
1000
1000
  _canvasScaler.uiScaleMode = CanvasScaler.ScaleMode.ScaleWithScreenSize;
1001
1001
  _canvasScaler.referenceResolution = new Vector2(1080, 1920);
1002
- _canvasScaler.matchWidthOrHeight = IsPortrait() ? 0.43f : 0.73f;
1002
+ _canvasScaler.matchWidthOrHeight = IsPortrait() ? 0.43f : 0.63f;
1003
1003
 
1004
1004
  CreateSafeArea();
1005
1005
  CreateBlockerUI();
@@ -57,6 +57,17 @@ namespace Hyper.Internal
57
57
 
58
58
  #endregion
59
59
 
60
+ #region Validation
61
+
62
+ /// <summary>
63
+ /// Returns true if this settings asset has been configured by the developer.
64
+ /// A fresh package template has all platform/orientation flags set to false,
65
+ /// so any asset with at least one flag enabled is considered the project copy.
66
+ /// </summary>
67
+ public bool IsConfigured => portrait || landscape || pc || mobile;
68
+
69
+ #endregion
70
+
60
71
  #region Restart Flow Settings
61
72
 
62
73
  [Space(20)]
@@ -12,12 +12,12 @@ MonoBehaviour:
12
12
  m_Script: {fileID: 11500000, guid: 56c34fa8aa6f98746a3664aa1d18f483, type: 3}
13
13
  m_Name: HyperSDKSettings
14
14
  m_EditorClassIdentifier:
15
- portrait: 1
15
+ portrait: 0
16
16
  landscape: 0
17
17
  pc: 0
18
- mobile: 1
18
+ mobile: 0
19
19
  startCTA: 0
20
- swipeDirection: 0
20
+ swipeDirection: 2
21
21
  controlBarLayout: 0
22
22
  controlBarTheme: 1
23
23
  useCustomRestartFlow: 0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "app.hypergames.hypersdk",
3
- "version": "1.8.0",
3
+ "version": "1.8.2",
4
4
  "displayName": "HyperSDK",
5
5
  "description": "Official Unity SDK for Hyper: multiplayer battles, leaderboards, deterministic RNG, session management, tutorials, and WebGL optimizations for production-ready games.",
6
6
  "unity": "6000.0",