app.hypergames.hypersdk 1.8.4 → 1.8.5

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,10 @@
1
+ ## [1.8.5](https://github.com/mvmhyper/hyper-sdk/compare/v1.8.4...v1.8.5) (2026-04-12)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * misc UI and timer behavior ([ebe46fc](https://github.com/mvmhyper/hyper-sdk/commit/ebe46fcbbb9fa52527cc1978e3d7445285c71f9d))
7
+
1
8
  ## [1.8.4](https://github.com/mvmhyper/hyper-sdk/compare/v1.8.3...v1.8.4) (2026-04-10)
2
9
 
3
10
 
package/HyperLoader.unity CHANGED
@@ -305,7 +305,7 @@ RectTransform:
305
305
  m_AnchorMin: {x: 0, y: 1}
306
306
  m_AnchorMax: {x: 0, y: 1}
307
307
  m_AnchoredPosition: {x: 489.45853, y: -280.1698}
308
- m_SizeDelta: {x: 0, y: 239.347}
308
+ m_SizeDelta: {x: 1044.9, y: 239.347}
309
309
  m_Pivot: {x: 0.5, y: 0.5}
310
310
  --- !u!114 &751153944
311
311
  MonoBehaviour:
@@ -840,7 +840,7 @@ GameObject:
840
840
  m_Component:
841
841
  - component: {fileID: 1064166296}
842
842
  m_Layer: 0
843
- m_Name: __HyperSDK_BuildMarker_639114620230900022
843
+ m_Name: __HyperSDK_BuildMarker_639114648052637778
844
844
  m_TagString: Untagged
845
845
  m_Icon: {fileID: 0}
846
846
  m_NavMeshLayer: 0
@@ -83,8 +83,10 @@ namespace Hyper.Internal.Managers
83
83
  float unscaledDelta = Time.unscaledTime - _lastUnscaledTime;
84
84
  _lastUnscaledTime = Time.unscaledTime;
85
85
 
86
- UpdatePracticeTimer(unscaledDelta);
87
- UpdateBattleTimer(unscaledDelta);
86
+ float gameTimerDelta = Mathf.Approximately(Time.timeScale, 0f) ? 0f : unscaledDelta;
87
+
88
+ UpdatePracticeTimer(gameTimerDelta);
89
+ UpdateBattleTimer(gameTimerDelta);
88
90
  UpdateSessionTimer(unscaledDelta);
89
91
  }
90
92
 
@@ -128,12 +128,19 @@ namespace Hyper.Internal
128
128
  bool haveLatency = TryGetCurrentLatency(out int lat, out bool socketOk);
129
129
  bool showPingUi = ShouldUseDynamicPingIcon();
130
130
 
131
+ // Connected but no RTT sample yet: show 0 ms and good bars until first measurement.
132
+ int barLatencyMs = lat;
133
+ if (haveLatency && socketOk && lat < 0)
134
+ barLatencyMs = 0;
135
+
131
136
  if (wifiLatencyText != null)
132
137
  {
133
138
  if (!showPingUi)
134
139
  wifiLatencyText.text = string.Empty;
135
- else if (!haveLatency || !socketOk || lat < 0)
140
+ else if (!haveLatency || !socketOk)
136
141
  wifiLatencyText.text = "--";
142
+ else if (lat < 0)
143
+ wifiLatencyText.text = "0 ms";
137
144
  else
138
145
  wifiLatencyText.text = $"{Mathf.Clamp(lat, 0, badPingMaxMs)} ms";
139
146
  }
@@ -144,7 +151,7 @@ namespace Hyper.Internal
144
151
  if (!haveLatency)
145
152
  return;
146
153
 
147
- RefreshPingBars(lat, socketOk);
154
+ RefreshPingBars(barLatencyMs, socketOk);
148
155
  }
149
156
 
150
157
  private bool TryGetCurrentLatency(out int lat, out bool socketOk)
@@ -157,16 +164,15 @@ namespace Hyper.Internal
157
164
  return true;
158
165
  }
159
166
  #endif
160
- BackendManager backend = HyperRuntime.BackendManager;
161
- if (backend == null)
167
+ if (_backendManager == null)
162
168
  {
163
169
  lat = -1;
164
170
  socketOk = false;
165
171
  return false;
166
172
  }
167
173
 
168
- lat = backend.SdkSmoothedLatencyMs;
169
- socketOk = backend.isSocketConnected;
174
+ lat = _backendManager.SdkSmoothedLatencyMs;
175
+ socketOk = _backendManager.isSocketConnected;
170
176
  return true;
171
177
  }
172
178
 
@@ -129,8 +129,8 @@ MonoBehaviour:
129
129
  lost: {fileID: 4434394802318301849}
130
130
  restored: {fileID: 2473909893973907380}
131
131
  dynamicPingIcon: {fileID: 5540111900672461523}
132
- goodPingMaxMs: 100
133
- badPingMaxMs: 300
132
+ goodPingMaxMs: 120
133
+ badPingMaxMs: 280
134
134
  goodPingColor: {r: 0.14509805, g: 0.6666667, b: 0.4, a: 1}
135
135
  averagePingColor: {r: 1, g: 0.4862745, b: 0, a: 1}
136
136
  goodPingBar: {fileID: 1844935579317689283}
@@ -139,7 +139,7 @@ MonoBehaviour:
139
139
  wifiBackgroundImage: {fileID: 4367089441050715749}
140
140
  wifiDotImage: {fileID: 225984263713194603}
141
141
  wifiLatencyText: {fileID: 2975656175046737043}
142
- simulateRandomPingInEditor: 1
142
+ simulateRandomPingInEditor: 0
143
143
  editorSimMinMs: 0
144
144
  editorSimMaxMs: 300
145
145
  editorSimIntervalSeconds: 0.5
@@ -356,7 +356,7 @@ MonoBehaviour:
356
356
  m_Name:
357
357
  m_EditorClassIdentifier:
358
358
  m_Material: {fileID: 0}
359
- m_Color: {r: 0.14509805, g: 0.6666667, b: 0.4, a: 0}
359
+ m_Color: {r: 0.14509805, g: 0.6666667, b: 0.4, a: 0.13725491}
360
360
  m_RaycastTarget: 1
361
361
  m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
362
362
  m_Maskable: 1
@@ -1523,7 +1523,7 @@ MonoBehaviour:
1523
1523
  m_OnCullStateChanged:
1524
1524
  m_PersistentCalls:
1525
1525
  m_Calls: []
1526
- m_text: 60 ms
1526
+ m_text: 0 ms
1527
1527
  m_isRightToLeft: 0
1528
1528
  m_fontAsset: {fileID: 11400000, guid: 39c484b4a22288c488625a88b6da2145, type: 2}
1529
1529
  m_sharedMaterial: {fileID: -8342687123090027242, guid: 39c484b4a22288c488625a88b6da2145, type: 2}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "app.hypergames.hypersdk",
3
- "version": "1.8.4",
3
+ "version": "1.8.5",
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",