app.hypergames.hypersdk 1.11.0-beta.18 → 1.11.0-beta.19
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.11.0-beta.19](https://github.com/mvmhyper/hyper-sdk/compare/v1.11.0-beta.18...v1.11.0-beta.19) (2026-09-01)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **replay:** stop seeking at requested progress ([54bf74a](https://github.com/mvmhyper/hyper-sdk/commit/54bf74a4b66b7c19e1398acd611a7d9557ccbcf3))
|
|
7
|
+
|
|
1
8
|
# [1.11.0-beta.18](https://github.com/mvmhyper/hyper-sdk/compare/v1.11.0-beta.17...v1.11.0-beta.18) (2026-09-01)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -36,7 +36,10 @@ namespace Hyper.Internal.Managers
|
|
|
36
36
|
{
|
|
37
37
|
if (_playback == null || !_playback.IsPlaying) return;
|
|
38
38
|
_playback.Tick();
|
|
39
|
-
ReplaySessionState.SetProgress(_playback.Progress01)
|
|
39
|
+
if (ReplaySessionState.SetProgress(_playback.Progress01))
|
|
40
|
+
{
|
|
41
|
+
UnityEngine.Time.timeScale = ReplaySessionState.PlaybackSpeed;
|
|
42
|
+
}
|
|
40
43
|
}
|
|
41
44
|
|
|
42
45
|
internal void PrepareForRestart()
|
|
@@ -83,10 +83,10 @@ namespace Hyper.Internal
|
|
|
83
83
|
AvatarTexture = texture;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
public static
|
|
86
|
+
public static bool SetProgress(float progress)
|
|
87
87
|
{
|
|
88
|
-
if (!IsActive) return;
|
|
89
|
-
if (IsSeeking && !_seekPlaybackReady) return;
|
|
88
|
+
if (!IsActive) return false;
|
|
89
|
+
if (IsSeeking && !_seekPlaybackReady) return false;
|
|
90
90
|
float rawProgress = Math.Max(0f, Math.Min(1f, progress));
|
|
91
91
|
Progress01 = GameplayStartProgress01 >= 1f
|
|
92
92
|
? 0f
|
|
@@ -101,7 +101,10 @@ namespace Hyper.Internal
|
|
|
101
101
|
PlaybackSpeed = UserPlaybackSpeed;
|
|
102
102
|
RestoreAudioAfterSeek();
|
|
103
103
|
SeekCompleted?.Invoke(PlaybackSpeed);
|
|
104
|
+
return true;
|
|
104
105
|
}
|
|
106
|
+
|
|
107
|
+
return false;
|
|
105
108
|
}
|
|
106
109
|
|
|
107
110
|
public static void SetPlaybackSpeed(float speed)
|
|
@@ -253,7 +253,6 @@ namespace Hyper.Internal
|
|
|
253
253
|
private void RestorePlaybackAfterSeek(float playbackSpeed)
|
|
254
254
|
{
|
|
255
255
|
float speed = SanitizePlaybackSpeed(playbackSpeed);
|
|
256
|
-
Time.timeScale = speed;
|
|
257
256
|
AlignPlaybackSpeedIndex(speed);
|
|
258
257
|
UpdatePlaybackSpeedLabel(speed);
|
|
259
258
|
SetSeekingPresentation(false);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "app.hypergames.hypersdk",
|
|
3
|
-
"version": "1.11.0-beta.
|
|
3
|
+
"version": "1.11.0-beta.19",
|
|
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",
|