com.typhoon.unitysdk 1.1.29 → 1.1.31
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,7 +1,19 @@
|
|
|
1
1
|
# 更新日志
|
|
2
|
+
## [1.1.31] - 2026-01-06
|
|
3
|
+
|
|
4
|
+
### 优化
|
|
5
|
+
* 优化 yandex games 背景图复制逻辑
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
## [1.1.30] - 2026-01-06
|
|
9
|
+
|
|
10
|
+
### 新增
|
|
11
|
+
* yandex games 补充背景图设置
|
|
12
|
+
|
|
13
|
+
|
|
2
14
|
## [1.1.29] - 2026-01-05
|
|
3
15
|
|
|
4
|
-
### 修复
|
|
16
|
+
### 修复
|
|
5
17
|
* 修复yandex games auto pause game 无法关闭问题
|
|
6
18
|
|
|
7
19
|
|
package/Editor/ApplyTool.cs
CHANGED
|
@@ -926,45 +926,7 @@ namespace TyphoonUnitySDK
|
|
|
926
926
|
|
|
927
927
|
ReimportScript(manifest);
|
|
928
928
|
AssetDatabase.Refresh();
|
|
929
|
-
|
|
930
|
-
//同步参数到PlayerSettings
|
|
931
|
-
var config = YandexGamesConfig.Default;
|
|
932
|
-
if (!string.IsNullOrEmpty(config.ProductName))
|
|
933
|
-
{
|
|
934
|
-
PlayerSettings.productName = config.ProductName;
|
|
935
|
-
}
|
|
936
|
-
|
|
937
|
-
if (!string.IsNullOrEmpty(config.CompanyName))
|
|
938
|
-
{
|
|
939
|
-
PlayerSettings.companyName = config.CompanyName;
|
|
940
|
-
}
|
|
941
|
-
|
|
942
|
-
PlayerSettings.SetIconsForTargetGroup(
|
|
943
|
-
BuildTargetGroup.Unknown, // 👈 关键
|
|
944
|
-
new[] { config.ProductIcon }
|
|
945
|
-
);
|
|
946
|
-
|
|
947
|
-
//修改模板横竖屏
|
|
948
|
-
var html = "Assets/WebGLTemplates/YandexGames/index.html";
|
|
949
|
-
switch (config.Orientation)
|
|
950
|
-
{
|
|
951
|
-
case YandexGamesConfig.ScreenOrientation.Portrait:
|
|
952
|
-
{
|
|
953
|
-
var template =
|
|
954
|
-
$"{UniEditor.PathRoot}/Editor/Templates/yandex_games_html_portrait_template.txt";
|
|
955
|
-
File.Copy(template, html, true);
|
|
956
|
-
}
|
|
957
|
-
break;
|
|
958
|
-
case YandexGamesConfig.ScreenOrientation.Landscape:
|
|
959
|
-
{
|
|
960
|
-
var template =
|
|
961
|
-
$"{UniEditor.PathRoot}/Editor/Templates/yandex_games_html_landscape_template.txt";
|
|
962
|
-
File.Copy(template, html, true);
|
|
963
|
-
}
|
|
964
|
-
break;
|
|
965
|
-
}
|
|
966
|
-
|
|
967
|
-
EditorApplication.ExecuteMenuItem("TyphoonSDK/Command/CloseYG2AutoPauseGame");
|
|
929
|
+
EditorApplication.ExecuteMenuItem("TyphoonSDK/Command/ApplyYandexGamesSettings");
|
|
968
930
|
AssetDatabase.Refresh();
|
|
969
931
|
EditorUtility.SetDirty(AppConfigAsset.Instance);
|
|
970
932
|
AssetDatabase.SaveAssets();
|
|
@@ -114,25 +114,23 @@ namespace TyphoonUnitySDK
|
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
+
|
|
117
118
|
|
|
118
119
|
[LabelOverride("插页广告展示最小间隔(秒)(>=0)", 220)]
|
|
119
120
|
public int IntersInterval = 45;
|
|
120
121
|
|
|
121
122
|
[LabelOverride("激励视频播放后跳过下一次插页广告", 220)]
|
|
122
123
|
public bool SkipIntersAfterShowRewardFlag = true;
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
public Texture2D ProductIcon;
|
|
126
|
-
|
|
127
|
-
[LabelOverride("Product Name (非中文)", 220)]
|
|
128
|
-
public string ProductName = string.Empty;
|
|
129
|
-
|
|
130
|
-
[LabelOverride("Company Name (非中文)", 220)]
|
|
131
|
-
public string CompanyName = string.Empty;
|
|
132
|
-
|
|
133
|
-
|
|
124
|
+
|
|
125
|
+
|
|
134
126
|
[LabelOverride("导出目录 (非中文,可选)", 220)]
|
|
135
127
|
public string ExportPath = "";
|
|
128
|
+
|
|
129
|
+
[LabelOverride("加载背景,仅支持.png,.jpg (可选)", 220)]
|
|
130
|
+
public Texture2D Background;
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
136
134
|
|
|
137
135
|
/// <summary>
|
|
138
136
|
/// 横竖屏模式
|
|
@@ -146,6 +144,8 @@ namespace TyphoonUnitySDK
|
|
|
146
144
|
[Header("横竖屏模式")]
|
|
147
145
|
public ScreenOrientation Orientation = ScreenOrientation.Portrait;
|
|
148
146
|
|
|
147
|
+
|
|
148
|
+
|
|
149
149
|
|
|
150
150
|
|
|
151
151
|
public void Save()
|
|
Binary file
|
|
@@ -535,9 +535,12 @@ Assets/PluginYourGames/Platforms/YandexGames/Scripts/OwnHost/Editor/OwnHostEdito
|
|
|
535
535
|
Assets/PluginYourGames/Platforms/YandexGames/Scripts/OwnHost/Editor/OwnHostEditor.cs.meta
|
|
536
536
|
Assets/WebGLTemplates
|
|
537
537
|
Assets/WebGLTemplates/YandexGames.meta
|
|
538
|
+
Assets/WebGLTemplates/YandexGames/Images.meta
|
|
538
539
|
Assets/WebGLTemplates/YandexGames/index.html
|
|
539
540
|
Assets/WebGLTemplates/YandexGames/index.html.meta
|
|
540
541
|
Assets/WebGLTemplates/YandexGames/style.css
|
|
541
542
|
Assets/WebGLTemplates/YandexGames/style.css.meta
|
|
542
543
|
Assets/WebGLTemplates/YandexGames/thumbnail.png
|
|
543
544
|
Assets/WebGLTemplates/YandexGames/thumbnail.png.meta
|
|
545
|
+
Assets/WebGLTemplates/YandexGames/Images/background.png
|
|
546
|
+
Assets/WebGLTemplates/YandexGames/Images/background.png.meta
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"com.typhoon.unitysdk","displayName":"typhoon unity sdk","version":"1.1.
|
|
1
|
+
{"name":"com.typhoon.unitysdk","displayName":"typhoon unity sdk","version":"1.1.31","description":"","unity":"2018.1","type":"tool","hideInEditor":false,"author":{"name":"Jan Zhang","email":"","url":""},"changelogUrl":"","documentationUrl":"","keywords":["typhoon"],"license":"","licensesUrl":"","customDependencies":[{"PackageName":"com.unity.nuget.newtonsoft-json","Value":"2.0.0"}],"version_log":"## [1.1.31] - 2026-01-06\r\n\r\n### 优化\n* 优化 yandex games 背景图复制逻辑\r\n\r\n","major_flag":false,"write_time_stamp":1767682289000,"others":{"items":[]},"dependencies":{"com.unity.nuget.newtonsoft-json":"2.0.0"}}
|