com.typhoon.unitysdk 1.1.28 → 1.1.30
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 +13 -1
- package/Editor/ApplyTool.cs +2 -38
- package/Editor/YandexGamesConfig.cs +11 -11
- package/Sources~/Package/YandexGames.unitypackage +0 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
# 更新日志
|
|
2
|
-
## [1.1.
|
|
2
|
+
## [1.1.30] - 2026-01-06
|
|
3
3
|
|
|
4
4
|
### 新增
|
|
5
|
+
* yandex games 补充背景图设置
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
## [1.1.29] - 2026-01-05
|
|
9
|
+
|
|
10
|
+
### 修复
|
|
11
|
+
* 修复yandex games auto pause game 无法关闭问题
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [1.1.28] - 2026-01-05
|
|
15
|
+
|
|
16
|
+
### 新增
|
|
5
17
|
* yandex games : apply时自动关闭auto pause game
|
|
6
18
|
|
|
7
19
|
|
package/Editor/ApplyTool.cs
CHANGED
|
@@ -925,44 +925,8 @@ namespace TyphoonUnitySDK
|
|
|
925
925
|
}
|
|
926
926
|
|
|
927
927
|
ReimportScript(manifest);
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
if (!string.IsNullOrEmpty(config.ProductName))
|
|
931
|
-
{
|
|
932
|
-
PlayerSettings.productName = config.ProductName;
|
|
933
|
-
}
|
|
934
|
-
|
|
935
|
-
if (!string.IsNullOrEmpty(config.CompanyName))
|
|
936
|
-
{
|
|
937
|
-
PlayerSettings.companyName = config.CompanyName;
|
|
938
|
-
}
|
|
939
|
-
|
|
940
|
-
PlayerSettings.SetIconsForTargetGroup(
|
|
941
|
-
BuildTargetGroup.Unknown, // 👈 关键
|
|
942
|
-
new[] { config.ProductIcon }
|
|
943
|
-
);
|
|
944
|
-
|
|
945
|
-
//修改模板横竖屏
|
|
946
|
-
var html = "Assets/WebGLTemplates/YandexGames/index.html";
|
|
947
|
-
switch (config.Orientation)
|
|
948
|
-
{
|
|
949
|
-
case YandexGamesConfig.ScreenOrientation.Portrait:
|
|
950
|
-
{
|
|
951
|
-
var template =
|
|
952
|
-
$"{UniEditor.PathRoot}/Editor/Templates/yandex_games_html_portrait_template.txt";
|
|
953
|
-
File.Copy(template, html, true);
|
|
954
|
-
}
|
|
955
|
-
break;
|
|
956
|
-
case YandexGamesConfig.ScreenOrientation.Landscape:
|
|
957
|
-
{
|
|
958
|
-
var template =
|
|
959
|
-
$"{UniEditor.PathRoot}/Editor/Templates/yandex_games_html_landscape_template.txt";
|
|
960
|
-
File.Copy(template, html, true);
|
|
961
|
-
}
|
|
962
|
-
break;
|
|
963
|
-
}
|
|
964
|
-
|
|
965
|
-
EditorApplication.ExecuteMenuItem("TyphoonSDK/Command/CloseYG2AutoPauseGame");
|
|
928
|
+
AssetDatabase.Refresh();
|
|
929
|
+
EditorApplication.ExecuteMenuItem("TyphoonSDK/Command/ApplyYandexGamesSettings");
|
|
966
930
|
AssetDatabase.Refresh();
|
|
967
931
|
EditorUtility.SetDirty(AppConfigAsset.Instance);
|
|
968
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
|
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.30","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.30] - 2026-01-06\r\n\r\n### 新增\n* yandex games 补充背景图设置\r\n\r\n","major_flag":false,"write_time_stamp":1767681317000,"others":{"items":[]},"dependencies":{"com.unity.nuget.newtonsoft-json":"2.0.0"}}
|