app.hypergames.hypersdk 1.1.7 → 1.1.9
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 +14 -0
- package/Editor/Scripts/Setup/HyperSDKInstaller.cs +38 -14
- package/HyperLoader.unity +2 -2
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.1.9](https://github.com/mvmhyper/hyper-sdk/compare/v1.1.8...v1.1.9) (2025-11-25)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* expand HyperSDK installer asset copy ([100bc92](https://github.com/mvmhyper/hyper-sdk/commit/100bc92434498683e885f2d852263b5c1b15edf1))
|
|
7
|
+
|
|
8
|
+
## [1.1.8](https://github.com/mvmhyper/hyper-sdk/compare/v1.1.7...v1.1.8) (2025-11-25)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* ensure installer copies assets for npm installs ([df1285f](https://github.com/mvmhyper/hyper-sdk/commit/df1285fe507a89e4c1e660d5667af49227e91a89))
|
|
14
|
+
|
|
1
15
|
## [1.1.7](https://github.com/mvmhyper/hyper-sdk/compare/v1.1.6...v1.1.7) (2025-11-25)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -16,6 +16,10 @@ namespace Hyper.Editor
|
|
|
16
16
|
private const string HyperLoaderSceneDestination = "Assets/HyperSDK/Scenes/HyperLoader.unity";
|
|
17
17
|
private const string WebGLTemplateRelativePath = "WebGLTemplates/HyperLoader";
|
|
18
18
|
private const string WebGLTemplateDestination = "Assets/WebGLTemplates/HyperLoader";
|
|
19
|
+
private const string HyperGameContentConfigRelativePath = "Runtime/Resources/HyperGameContentConfig.asset";
|
|
20
|
+
private const string HyperSDKSettingsRelativePath = "Runtime/Resources/HyperSDKSettings.asset";
|
|
21
|
+
private const string HyperGameContentConfigDestination = "Assets/HyperSDK/Resources/HyperGameContentConfig.asset";
|
|
22
|
+
private const string HyperSDKSettingsDestination = "Assets/HyperSDK/Resources/HyperSDKSettings.asset";
|
|
19
23
|
|
|
20
24
|
static HyperSDKInstaller()
|
|
21
25
|
{
|
|
@@ -31,8 +35,9 @@ namespace Hyper.Editor
|
|
|
31
35
|
return;
|
|
32
36
|
}
|
|
33
37
|
|
|
34
|
-
// Skip if resolvedPath points
|
|
35
|
-
|
|
38
|
+
// Skip if resolvedPath points inside Assets (embedded/dev mode). Only run for cache/registry installs.
|
|
39
|
+
var normalizedPath = packageInfo.resolvedPath.Replace('\\', '/');
|
|
40
|
+
if (normalizedPath.Contains("/Assets/"))
|
|
36
41
|
{
|
|
37
42
|
return;
|
|
38
43
|
}
|
|
@@ -40,8 +45,14 @@ namespace Hyper.Editor
|
|
|
40
45
|
var previousVersion = EditorPrefs.GetString(InstallerPrefsKey, string.Empty);
|
|
41
46
|
var sceneExists = File.Exists(HyperLoaderSceneDestination);
|
|
42
47
|
var templateExists = Directory.Exists(WebGLTemplateDestination);
|
|
43
|
-
|
|
44
|
-
|
|
48
|
+
var configExists = File.Exists(HyperGameContentConfigDestination);
|
|
49
|
+
var settingsExists = File.Exists(HyperSDKSettingsDestination);
|
|
50
|
+
|
|
51
|
+
if (previousVersion == packageInfo.version &&
|
|
52
|
+
sceneExists &&
|
|
53
|
+
templateExists &&
|
|
54
|
+
configExists &&
|
|
55
|
+
settingsExists)
|
|
45
56
|
{
|
|
46
57
|
return;
|
|
47
58
|
}
|
|
@@ -49,11 +60,15 @@ namespace Hyper.Editor
|
|
|
49
60
|
var packageRoot = packageInfo.resolvedPath;
|
|
50
61
|
var hyperLoaderSource = Path.Combine(packageRoot, HyperLoaderSceneRelativePath);
|
|
51
62
|
var templateSource = Path.Combine(packageRoot, WebGLTemplateRelativePath);
|
|
63
|
+
var hyperGameContentConfigSource = Path.Combine(packageRoot, HyperGameContentConfigRelativePath);
|
|
64
|
+
var hyperSDKSettingsSource = Path.Combine(packageRoot, HyperSDKSettingsRelativePath);
|
|
52
65
|
|
|
53
66
|
try
|
|
54
67
|
{
|
|
55
|
-
|
|
68
|
+
CopyFileWithoutMeta(hyperLoaderSource, HyperLoaderSceneDestination);
|
|
56
69
|
CopyTemplate(templateSource);
|
|
70
|
+
CopyFileWithoutMeta(hyperGameContentConfigSource, HyperGameContentConfigDestination);
|
|
71
|
+
CopyFileWithoutMeta(hyperSDKSettingsSource, HyperSDKSettingsDestination);
|
|
57
72
|
|
|
58
73
|
EditorPrefs.SetString(InstallerPrefsKey, packageInfo.version);
|
|
59
74
|
AssetDatabase.Refresh();
|
|
@@ -64,26 +79,20 @@ namespace Hyper.Editor
|
|
|
64
79
|
}
|
|
65
80
|
}
|
|
66
81
|
|
|
67
|
-
private static void
|
|
82
|
+
private static void CopyFileWithoutMeta(string sourcePath, string destinationPath)
|
|
68
83
|
{
|
|
69
84
|
if (!File.Exists(sourcePath))
|
|
70
85
|
{
|
|
71
86
|
return;
|
|
72
87
|
}
|
|
73
88
|
|
|
74
|
-
var destinationDir = Path.GetDirectoryName(
|
|
89
|
+
var destinationDir = Path.GetDirectoryName(destinationPath);
|
|
75
90
|
if (!string.IsNullOrEmpty(destinationDir))
|
|
76
91
|
{
|
|
77
92
|
Directory.CreateDirectory(destinationDir);
|
|
78
93
|
}
|
|
79
94
|
|
|
80
|
-
FileUtil.CopyFileOrDirectory(sourcePath,
|
|
81
|
-
|
|
82
|
-
var sourceMeta = $"{sourcePath}.meta";
|
|
83
|
-
if (File.Exists(sourceMeta))
|
|
84
|
-
{
|
|
85
|
-
FileUtil.CopyFileOrDirectory(sourceMeta, $"{HyperLoaderSceneDestination}.meta");
|
|
86
|
-
}
|
|
95
|
+
FileUtil.CopyFileOrDirectory(sourcePath, destinationPath);
|
|
87
96
|
}
|
|
88
97
|
|
|
89
98
|
private static void CopyTemplate(string sourceDirectory)
|
|
@@ -105,6 +114,21 @@ namespace Hyper.Editor
|
|
|
105
114
|
}
|
|
106
115
|
|
|
107
116
|
FileUtil.CopyFileOrDirectory(sourceDirectory, WebGLTemplateDestination);
|
|
117
|
+
RemoveMetaFiles(WebGLTemplateDestination);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
private static void RemoveMetaFiles(string directory)
|
|
121
|
+
{
|
|
122
|
+
if (!Directory.Exists(directory))
|
|
123
|
+
{
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
var metaFiles = Directory.GetFiles(directory, "*.meta", SearchOption.AllDirectories);
|
|
128
|
+
foreach (var meta in metaFiles)
|
|
129
|
+
{
|
|
130
|
+
FileUtil.DeleteFileOrDirectory(meta);
|
|
131
|
+
}
|
|
108
132
|
}
|
|
109
133
|
}
|
|
110
134
|
}
|
package/HyperLoader.unity
CHANGED
|
@@ -1539,8 +1539,8 @@ RectTransform:
|
|
|
1539
1539
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
|
1540
1540
|
m_AnchorMin: {x: 0, y: 0}
|
|
1541
1541
|
m_AnchorMax: {x: 1, y: 1}
|
|
1542
|
-
m_AnchoredPosition: {x: 0.09716797, y: -
|
|
1543
|
-
m_SizeDelta: {x: -15.3633, y: -
|
|
1542
|
+
m_AnchoredPosition: {x: 0.09716797, y: -0.12949944}
|
|
1543
|
+
m_SizeDelta: {x: -15.3633, y: -6.8068}
|
|
1544
1544
|
m_Pivot: {x: 0.5, y: 0.5}
|
|
1545
1545
|
--- !u!224 &5943681541187729561 stripped
|
|
1546
1546
|
RectTransform:
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "app.hypergames.hypersdk",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.9",
|
|
4
4
|
"displayName": "HyperSDK",
|
|
5
|
-
"description": "Official Unity SDK for HyperGames.
|
|
5
|
+
"description": "Official Unity SDK for HyperGames. Brings platform APIs, multiplayer battle flow, score and tutorial systems, and WebGL build tooling straight into your project.",
|
|
6
6
|
"unity": "6000.0",
|
|
7
7
|
"unityRelease": "0b5",
|
|
8
8
|
"keywords": [
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"email": "info@mvm.gg",
|
|
26
26
|
"url": "https://mvm.gg/"
|
|
27
27
|
},
|
|
28
|
-
"licensesUrl": "https://
|
|
29
|
-
"changelogUrl": "https://
|
|
30
|
-
"documentationUrl": "https://
|
|
28
|
+
"licensesUrl": "https://github.com/mvmhyper/hyper-sdk/blob/main/LICENSE.md",
|
|
29
|
+
"changelogUrl": "https://github.com/mvmhyper/hyper-sdk/blob/main/CHANGELOG.md",
|
|
30
|
+
"documentationUrl": "https://docs.hypergames.app/",
|
|
31
31
|
"repository": {
|
|
32
32
|
"type": "git",
|
|
33
33
|
"url": "https://github.com/mvmhyper/hyper-sdk.git",
|