app.hypergames.hypersdk 1.8.3 → 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,17 @@
|
|
|
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
|
+
|
|
8
|
+
## [1.8.4](https://github.com/mvmhyper/hyper-sdk/compare/v1.8.3...v1.8.4) (2026-04-10)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* update SDK control bar text and Wi-Fi icon sizing ([0a1b926](https://github.com/mvmhyper/hyper-sdk/commit/0a1b9269a7fb59d78fc9786a2479605b415a684f))
|
|
14
|
+
|
|
1
15
|
## [1.8.3](https://github.com/mvmhyper/hyper-sdk/compare/v1.8.2...v1.8.3) (2026-04-10)
|
|
2
16
|
|
|
3
17
|
|
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:
|
|
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:
|
|
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
|
-
|
|
87
|
-
|
|
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
|
|
|
@@ -38,7 +38,7 @@ namespace Hyper.Internal
|
|
|
38
38
|
[Header("Latency label")]
|
|
39
39
|
[SerializeField] private TextMeshProUGUI wifiLatencyText;
|
|
40
40
|
|
|
41
|
-
private const float WifiBackgroundAlpha = 0.
|
|
41
|
+
private const float WifiBackgroundAlpha = 0.175f;
|
|
42
42
|
private const float WifiDotAlpha = 1f;
|
|
43
43
|
|
|
44
44
|
/// <summary>Never below this so bars stay faintly visible.</summary>
|
|
@@ -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
|
|
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(
|
|
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
|
-
|
|
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 =
|
|
169
|
-
socketOk =
|
|
174
|
+
lat = _backendManager.SdkSmoothedLatencyMs;
|
|
175
|
+
socketOk = _backendManager.isSocketConnected;
|
|
170
176
|
return true;
|
|
171
177
|
}
|
|
172
178
|
|
|
@@ -101,7 +101,7 @@ RectTransform:
|
|
|
101
101
|
m_GameObject: {fileID: 1048866143089788928}
|
|
102
102
|
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
|
103
103
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
|
104
|
-
m_LocalScale: {x: 0.
|
|
104
|
+
m_LocalScale: {x: 0.75, y: 0.75, z: 0.75}
|
|
105
105
|
m_ConstrainProportionsScale: 1
|
|
106
106
|
m_Children:
|
|
107
107
|
- {fileID: 8309774266759315490}
|
|
@@ -129,8 +129,8 @@ MonoBehaviour:
|
|
|
129
129
|
lost: {fileID: 4434394802318301849}
|
|
130
130
|
restored: {fileID: 2473909893973907380}
|
|
131
131
|
dynamicPingIcon: {fileID: 5540111900672461523}
|
|
132
|
-
goodPingMaxMs:
|
|
133
|
-
badPingMaxMs:
|
|
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:
|
|
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
|
|
@@ -1126,7 +1126,7 @@ GameObject:
|
|
|
1126
1126
|
m_Icon: {fileID: 0}
|
|
1127
1127
|
m_NavMeshLayer: 0
|
|
1128
1128
|
m_StaticEditorFlags: 0
|
|
1129
|
-
m_IsActive:
|
|
1129
|
+
m_IsActive: 0
|
|
1130
1130
|
--- !u!224 &8018927992899460556
|
|
1131
1131
|
RectTransform:
|
|
1132
1132
|
m_ObjectHideFlags: 0
|
|
@@ -1492,8 +1492,8 @@ RectTransform:
|
|
|
1492
1492
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
|
1493
1493
|
m_AnchorMin: {x: 0.5, y: 0.5}
|
|
1494
1494
|
m_AnchorMax: {x: 0.5, y: 0.5}
|
|
1495
|
-
m_AnchoredPosition: {x: 0.
|
|
1496
|
-
m_SizeDelta: {x:
|
|
1495
|
+
m_AnchoredPosition: {x: -0.047702, y: -36.4}
|
|
1496
|
+
m_SizeDelta: {x: 100.1, y: 28.366}
|
|
1497
1497
|
m_Pivot: {x: 0.5, y: 0.5}
|
|
1498
1498
|
--- !u!222 &2670092967211285227
|
|
1499
1499
|
CanvasRenderer:
|
|
@@ -1523,7 +1523,7 @@ MonoBehaviour:
|
|
|
1523
1523
|
m_OnCullStateChanged:
|
|
1524
1524
|
m_PersistentCalls:
|
|
1525
1525
|
m_Calls: []
|
|
1526
|
-
m_text:
|
|
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}
|
|
@@ -1550,17 +1550,17 @@ MonoBehaviour:
|
|
|
1550
1550
|
m_faceColor:
|
|
1551
1551
|
serializedVersion: 2
|
|
1552
1552
|
rgba: 4294967295
|
|
1553
|
-
m_fontSize:
|
|
1553
|
+
m_fontSize: 22.5
|
|
1554
1554
|
m_fontSizeBase: 15
|
|
1555
1555
|
m_fontWeight: 400
|
|
1556
1556
|
m_enableAutoSizing: 1
|
|
1557
1557
|
m_fontSizeMin: 10.4
|
|
1558
|
-
m_fontSizeMax:
|
|
1558
|
+
m_fontSizeMax: 22.5
|
|
1559
1559
|
m_fontStyle: 0
|
|
1560
|
-
m_HorizontalAlignment:
|
|
1561
|
-
m_VerticalAlignment:
|
|
1560
|
+
m_HorizontalAlignment: 2
|
|
1561
|
+
m_VerticalAlignment: 256
|
|
1562
1562
|
m_textAlignment: 65535
|
|
1563
|
-
m_characterSpacing:
|
|
1563
|
+
m_characterSpacing: -1.4
|
|
1564
1564
|
m_wordSpacing: 0
|
|
1565
1565
|
m_lineSpacing: 0
|
|
1566
1566
|
m_lineSpacingMax: 0
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "app.hypergames.hypersdk",
|
|
3
|
-
"version": "1.8.
|
|
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",
|