Skip to content

Commit 7720c28

Browse files
author
uhu
committed
feat: update sdk
1 parent 834af8e commit 7720c28

File tree

196 files changed

+12296
-15699
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

196 files changed

+12296
-15699
lines changed

Demo/API_V2/Assets/WX-WASM-SDK-V2/CHANGELOG.md

+40
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,47 @@ Removed - 删除功能/接口
66
Fixed - 修复问题
77
Others - 其他
88
-->
9+
## 2024-5-15 【普通更新】
10+
### Feature
11+
* 普通:支持JS构建模板,请查阅[模板文档](https://wechat-miniprogram.github.io/minigame-unity-webgl-transform/Design/BuildTemplate.html)
12+
* 普通:调整启动封面表现,默认进度动画加速
13+
* 普通:writeFile/unlink操作文件时同步更新启动插件维护的缓存信息
14+
* 普通:支持自定义微信系统字体字符集
15+
* 普通:网络接口如UnityWebRequest支持通过添加特殊请求头`request.SetRequestHeader("wechatminigame-preload", "1")`做预下载,缓存到用户目录但不增加unity内存。当需要使用时不增加请求头重新请求即可从用户目录读取缓存使用。
16+
* 普通:网络接口如UnityWebRequest支持通过添加特殊请求头`request.SetRequestHeader("wechatminigame-skipclean", "1")`不做旧缓存淘汰。
17+
* 普通:适配插件版本升级到1.2.50
18+
19+
## 2024-5-15 【普通更新】
20+
### Fixed
21+
* 普通:修复团结版dotnet wasm加载报错
22+
* 普通:修复音频的长度为负数时的异常stop
23+
* 普通:修复配置文件重置bug
24+
25+
## 2024-4-17 【普通更新】
26+
### Feature
27+
* 普通:编译参数增加ERROR_ON_UNDEFINED_SYMBOLS
28+
* 适配插件版本升级到1.2.45
29+
### Fixed
30+
* 普通:修复团结版dotnet wasm加载报错
31+
* 普通:修复音频的长度为负数时的异常stop
32+
* 普通:修复配置文件重置bug
33+
34+
## 2024-4-3 【重要更新】
35+
包含重要bugfix、特性支持
36+
### Fixed
37+
* 重要:修复UDP接口处理buffer
38+
* 重要:修复unity-namespace.js部分环境变量丢失问题
39+
40+
## 2024-3-28 【普通更新】
41+
### Feature
42+
* 普通:优化对团结版的导出支持
43+
### Fixed
44+
* 普通:兼容PlayDelayed播放
45+
* 普通:兼容FMOD2.02版本
46+
* 普通:修复FState偶现报错
47+
948
## 2024-3-5 【普通更新】
49+
### Feature
1050
* 普通:WXAssetBundle支持切换CDN
1151
* 普通:优化VideoPlayer组件
1252
* 普通:更新小游戏模板捕获全局错误
Binary file not shown.

Demo/API_V2/Assets/WX-WASM-SDK-V2/Editor/Brotli/linux_x86_64/libbrotlicommon.so.meta

+27
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.

Demo/API_V2/Assets/WX-WASM-SDK-V2/Editor/Brotli/linux_x86_64/libbrotlienc.so.meta

+27
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.

Demo/API_V2/Assets/WX-WASM-SDK-V2/Editor/Brotli/macos/libbrotlicommon.dylib.meta

+27
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.

Demo/API_V2/Assets/WX-WASM-SDK-V2/Editor/Brotli/macos/libbrotlienc.dylib.meta

+27
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.

Demo/API_V2/Assets/WX-WASM-SDK-V2/Editor/Brotli/win_x86_64/libbrotlicommon.dll.meta

+27
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.

Demo/API_V2/Assets/WX-WASM-SDK-V2/Editor/Brotli/win_x86_64/libbrotlienc.dll.meta

+27
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Demo/API_V2/Assets/WX-WASM-SDK-V2/Editor/MiniGameConfig.asset

+26-5
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ MonoBehaviour:
99
m_GameObject: {fileID: 0}
1010
m_Enabled: 1
1111
m_EditorHideFlags: 0
12-
m_Script: {fileID: 1795359250, guid: 1cf430f187a0b40eda7f668318d8be23, type: 3}
12+
m_Script: {fileID: 1795359250, guid: caf6a5421bfe6496f8a0c991240f7876, type: 3}
1313
m_Name: MiniGameConfig
1414
m_EditorClassIdentifier:
1515
ProjectConf:
@@ -19,7 +19,7 @@ MonoBehaviour:
1919
assetLoadType: 1
2020
compressDataPackage: 0
2121
VideoUrl:
22-
DST: /Users/lujinhao/Desktop/unitygame
22+
DST:
2323
StreamCDN:
2424
bundleHashLength: 32
2525
bundlePathIdentifier: StreamingAssets;
@@ -43,25 +43,26 @@ MonoBehaviour:
4343
SDKOptions:
4444
UseFriendRelation: 0
4545
UseCompressedTexture: 0
46-
UseMiniGameChat: 1
46+
UseMiniGameChat: 0
4747
PreloadWXFont: 0
4848
CompileOptions:
4949
DevelopBuild: 0
5050
AutoProfile: 0
5151
ScriptOnly: 0
5252
Il2CppOptimizeSize: 1
5353
profilingFuncs: 1
54-
Webgl2: 1
54+
Webgl2: 0
5555
fbslim: 0
5656
DeleteStreamingAssets: 1
5757
ProfilingMemory: 0
5858
CleanBuild: 0
5959
CustomNodePath:
60-
showMonitorSuggestModal: 0
60+
showMonitorSuggestModal: 1
6161
enableProfileStats: 0
6262
enableRenderAnalysis: 0
6363
iOSAutoGCInterval: 10000
6464
enableIOSPerformancePlus: 0
65+
brotliMT: 0
6566
CompressTexture:
6667
halfSize: 0
6768
useDXT5: 0
@@ -72,3 +73,23 @@ MonoBehaviour:
7273
debugMode: 0
7374
force: 0
7475
PlayerPrefsKeys: []
76+
FontOptions:
77+
CJK_Unified_Ideographs: 1
78+
C0_Controls_and_Basic_Latin: 1
79+
CJK_Symbols_and_Punctuation: 1
80+
General_Punctuation: 1
81+
Enclosed_CJK_Letters_and_Months: 1
82+
Vertical_Forms: 1
83+
CJK_Compatibility_Forms: 1
84+
Miscellaneous_Symbols: 1
85+
CJK_Compatibility: 1
86+
Halfwidth_and_Fullwidth_Forms: 1
87+
Dingbats: 1
88+
Letterlike_Symbols: 1
89+
Enclosed_Alphanumerics: 1
90+
Number_Forms: 1
91+
Currency_Symbols: 1
92+
Arrows: 1
93+
Geometric_Shapes: 1
94+
Mathematical_Operators: 1
95+
CustomUnicode:

Demo/API_V2/Assets/WX-WASM-SDK-V2/Editor/PicCompressor.cs

+6-6
Original file line numberDiff line numberDiff line change
@@ -37,30 +37,30 @@ public static string GetASTCPath()
3737
{
3838
if (Application.platform == RuntimePlatform.WindowsEditor)
3939
{
40-
return Path.Combine(Application.dataPath, "WX-WASM-SDK-V2/Editor/TextureEditor/Node/astcenc-sse4.1.exe");
40+
return Path.Combine(UnityUtil.GetWxSDKRootPath(), "Editor/TextureEditor/Node/astcenc-sse4.1.exe");
4141
}
4242

4343
if (UnityEngine.SystemInfo.processorType.ToLower().Contains("apple"))
4444
{
45-
return Path.Combine(Application.dataPath, "WX-WASM-SDK-V2/Editor/TextureEditor/Node/astcenc-neon");
45+
return Path.Combine(UnityUtil.GetWxSDKRootPath(), "Editor/TextureEditor/Node/astcenc-neon");
4646
}
4747

48-
return Path.Combine(Application.dataPath, "WX-WASM-SDK-V2/Editor/TextureEditor/Node/astcenc-avx2");
48+
return Path.Combine(UnityUtil.GetWxSDKRootPath(), "Editor/TextureEditor/Node/astcenc-avx2");
4949
}
5050

5151
public static string GetPVRTCPath()
5252
{
53-
return Path.Combine(Application.dataPath, "WX-WASM-SDK-V2/Editor/TextureEditor/Node/PVRTexToolCLI" + (Application.platform == RuntimePlatform.WindowsEditor ? ".exe" : string.Empty));
53+
return Path.Combine(UnityUtil.GetWxSDKRootPath(), "Editor/TextureEditor/Node/PVRTexToolCLI" + (Application.platform == RuntimePlatform.WindowsEditor ? ".exe" : string.Empty));
5454
}
5555

5656
public static string GetDXT5Path()
5757
{
58-
return Path.Combine(Application.dataPath, "WX-WASM-SDK-V2/Editor/TextureEditor/Node/PVRTexToolCLI" + (Application.platform == RuntimePlatform.WindowsEditor ? ".exe" : string.Empty));
58+
return Path.Combine(UnityUtil.GetWxSDKRootPath(), "Editor/TextureEditor/Node/PVRTexToolCLI" + (Application.platform == RuntimePlatform.WindowsEditor ? ".exe" : string.Empty));
5959
}
6060

6161
public static string GetPNGPath()
6262
{
63-
return Path.Combine(Application.dataPath, "WX-WASM-SDK-V2/Editor/TextureEditor/Node/pngquant" + (Application.platform == RuntimePlatform.WindowsEditor ? ".exe" : string.Empty));
63+
return Path.Combine(UnityUtil.GetWxSDKRootPath(), "Editor/TextureEditor/Node/pngquant" + (Application.platform == RuntimePlatform.WindowsEditor ? ".exe" : string.Empty));
6464
}
6565

6666
public static void TestASTC()

0 commit comments

Comments
 (0)