Auto-publish.

This commit is contained in:
yacent 2025-07-07 15:08:51 +08:00
parent 90fa35a0a0
commit 9e824071ac
163 changed files with 407 additions and 207 deletions

7
.DS_Store.meta Normal file
View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: d02a9209494b92b24bbbbf70561c7d4b
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -17,8 +17,6 @@ namespace WeChatWASM
public static string projectRootPath;
private static WXPlayableEditorScriptObject config;
private static bool m_EnablePerfTool = false;
private static string _dstCache;
public static bool UseIL2CPP
{
get
@ -34,7 +32,6 @@ namespace WeChatWASM
public WXPlayableSettingsHelper()
{
projectRootPath = System.IO.Path.GetFullPath(Application.dataPath + "/../");
_dstCache = "";
}
public void OnFocus()
@ -156,12 +153,11 @@ namespace WeChatWASM
{
SDKFilePath = Path.Combine(UnityUtil.GetWxSDKRootPath(), "Runtime", "wechat-playable-default", "unity-sdk", "index.js");
config = UnityUtil.GetPlayableEditorConf();
_dstCache = config.ProjectConf.DST;
this.setData("projectName", config.ProjectConf.projectName);
this.setData("appid", config.ProjectConf.Appid);
this.setData("orientation", (int)config.ProjectConf.Orientation);
this.setData("dst", _dstCache);
this.setData("dst", config.ProjectConf.relativeDST);
this.setData("developBuild", config.CompileOptions.DevelopBuild);
this.setData("il2CppOptimizeSize", config.CompileOptions.Il2CppOptimizeSize);
@ -177,8 +173,8 @@ namespace WeChatWASM
config.ProjectConf.projectName = this.getDataInput("projectName");
config.ProjectConf.Appid = this.getDataInput("appid");
config.ProjectConf.Orientation = (WXScreenOritation)this.getDataPop("orientation");
_dstCache = this.getDataInput("dst");
config.ProjectConf.DST = GetAbsolutePath(_dstCache);
config.ProjectConf.relativeDST = this.getDataInput("dst");
config.ProjectConf.DST = GetAbsolutePath(config.ProjectConf.relativeDST);
config.CompileOptions.DevelopBuild = this.getDataCheckbox("developBuild");
config.CompileOptions.Il2CppOptimizeSize = this.getDataCheckbox("il2CppOptimizeSize");

View File

@ -99,6 +99,14 @@ namespace WeChatWASM
#endif
}
}
// 用于replaceRules判断是否需要注入相关的修改
public static bool UseEmscriptenGLX
{
get
{
return config.CompileOptions.enableEmscriptenGLX;
}
}
// public static void SetPlayableEnabled(bool enabled)
// {
// isPlayableBuild = enabled;
@ -115,6 +123,8 @@ namespace WeChatWASM
if (!isPlayableBuild) {
ProcessWxPerfBinaries();
}
// emscriptenglx的相关特性
ProcessWxEmscriptenGLXBinaries();
MakeEnvForLuaAdaptor();
// JSLib
SettingWXTextureMinJSLib();
@ -140,7 +150,7 @@ namespace WeChatWASM
return WXExportError.BUILD_WEBGL_FAILED;
}
dynamic config = isPlayableBuild ? UnityUtil.GetPlayableEditorConf() : UnityUtil.GetEditorConf();
if (config.ProjectConf.DST == string.Empty)
if (config.ProjectConf.relativeDST == string.Empty)
{
Debug.LogError("请先配置游戏导出路径");
return WXExportError.BUILD_WEBGL_FAILED;
@ -360,6 +370,39 @@ namespace WeChatWASM
AssetDatabase.Refresh();
}
private static void ProcessWxEmscriptenGLXBinaries()
{
string[] glLibs;
string DS = WXAssetsTextTools.DS;
if (UnityUtil.GetSDKMode() == UnityUtil.SDKMode.Package)
{
glLibs = new string[]
{
$"Packages{DS}com.qq.weixin.minigame{DS}Runtime{DS}Plugins{DS}libnative_command_buffer.a",
};
}
else
{
string glLibRootDir = $"Assets{DS}WX-WASM-SDK-V2{DS}Runtime{DS}Plugins{DS}";
glLibs = new string[]
{
$"{glLibRootDir}libnative_command_buffer.a",
};
}
for (int i = 0; i < glLibs.Length; i++)
{
var importer = AssetImporter.GetAtPath(glLibs[i]) as PluginImporter;
#if PLATFORM_WEIXINMINIGAME
importer.SetCompatibleWithPlatform(BuildTarget.WeixinMiniGame, config.CompileOptions.enableEmscriptenGLX);
#else
importer.SetCompatibleWithPlatform(BuildTarget.WebGL, config.CompileOptions.enableEmscriptenGLX);
#endif
// importer.SaveAndReimport();
SetPluginCompatibilityByModifyingMetadataFile(glLibs[i], config.CompileOptions.enableEmscriptenGLX);
}
AssetDatabase.Refresh();
}
/**
* Lua Adaptor Settings.
*/
@ -1904,7 +1947,7 @@ namespace WeChatWASM
config.ProjectConf.bundleHashLength.ToString(),
bundlePathIdentifierStr,
excludeFileExtensionsStr,
config.CompileOptions.Webgl2 ? "2" : "1",
config.CompileOptions.enableEmscriptenGLX ? config.CompileOptions.Webgl2 ? "4" : "3" : config.CompileOptions.Webgl2 ? "2" : "1",
Application.unityVersion,
WXExtEnvDef.pluginVersion,
config.ProjectConf.dataFileSubPrefix,

View File

@ -54,15 +54,11 @@ namespace WeChatWASM
foldInstantGame = WXConvertCore.IsInstantGameAutoStreaming();
projectRootPath = System.IO.Path.GetFullPath(Application.dataPath + "/../");
_dstCache = "";
}
private static WXEditorScriptObject config;
private static bool m_EnablePerfTool = false;
private static string _dstCache;
public void OnFocus()
{
loadData();
@ -187,8 +183,9 @@ namespace WeChatWASM
this.formCheckbox("il2CppOptimizeSize", "Il2Cpp Optimize Size(?)", "对应于Il2CppCodeGeneration选项勾选时使用OptimizeSize(默认推荐)生成代码小15%左右取消勾选则使用OptimizeSpeed。游戏中大量泛型集合的高频访问建议OptimizeSpeed在使用HybridCLR等第三方组件时只能用OptimizeSpeed。(Dotnet Runtime模式下该选项无效)", !UseIL2CPP);
this.formCheckbox("profilingFuncs", "Profiling Funcs");
this.formCheckbox("profilingMemory", "Profiling Memory");
this.formCheckbox("webgl2", "WebGL2.0");
this.formCheckbox("webgl2", "WebGL2.0(beta)");
this.formCheckbox("iOSPerformancePlus", "iOSPerformancePlus(?)", "是否使用iOS高性能+渲染方案有助于提升渲染兼容性、降低WebContent进程内存");
this.formCheckbox("EmscriptenGLX", "EmscriptenGLX(?)", "是否使用EmscriptenGLX渲染方案");
this.formCheckbox("deleteStreamingAssets", "Clear Streaming Assets");
this.formCheckbox("cleanBuild", "Clean WebGL Build");
// this.formCheckbox("cleanCloudDev", "Clean Cloud Dev");
@ -394,7 +391,6 @@ namespace WeChatWASM
// SDKFilePath = Path.Combine(Application.dataPath, "WX-WASM-SDK-V2", "Runtime", "wechat-default", "unity-sdk", "index.js");
SDKFilePath = Path.Combine(UnityUtil.GetWxSDKRootPath(), "Runtime", "wechat-default", "unity-sdk", "index.js");
config = UnityUtil.GetEditorConf();
_dstCache = config.ProjectConf.DST;
// Instant Game
if (WXConvertCore.IsInstantGameAutoStreaming())
@ -436,7 +432,7 @@ namespace WeChatWASM
this.setData("compressDataPackage", config.ProjectConf.compressDataPackage);
this.setData("videoUrl", config.ProjectConf.VideoUrl);
this.setData("orientation", (int)config.ProjectConf.Orientation);
this.setData("dst", _dstCache);
this.setData("dst", config.ProjectConf.relativeDST);
this.setData("bundleHashLength", config.ProjectConf.bundleHashLength.ToString());
this.setData("bundlePathIdentifier", config.ProjectConf.bundlePathIdentifier);
this.setData("bundleExcludeExtensions", config.ProjectConf.bundleExcludeExtensions);
@ -452,6 +448,7 @@ namespace WeChatWASM
this.setData("customNodePath", config.CompileOptions.CustomNodePath);
this.setData("webgl2", config.CompileOptions.Webgl2);
this.setData("iOSPerformancePlus", config.CompileOptions.enableIOSPerformancePlus);
this.setData("EmscriptenGLX", config.CompileOptions.enableEmscriptenGLX);
this.setData("fbslim", config.CompileOptions.fbslim);
this.setData("useFriendRelation", config.SDKOptions.UseFriendRelation);
this.setData("useMiniGameChat", config.SDKOptions.UseMiniGameChat);
@ -513,8 +510,8 @@ namespace WeChatWASM
config.ProjectConf.compressDataPackage = this.getDataCheckbox("compressDataPackage");
config.ProjectConf.VideoUrl = this.getDataInput("videoUrl");
config.ProjectConf.Orientation = (WXScreenOritation)this.getDataPop("orientation");
_dstCache = this.getDataInput("dst");
config.ProjectConf.DST = GetAbsolutePath(_dstCache);
config.ProjectConf.relativeDST = this.getDataInput("dst");
config.ProjectConf.DST = GetAbsolutePath(config.ProjectConf.relativeDST);
config.ProjectConf.bundleHashLength = int.Parse(this.getDataInput("bundleHashLength"));
config.ProjectConf.bundlePathIdentifier = this.getDataInput("bundlePathIdentifier");
config.ProjectConf.bundleExcludeExtensions = this.getDataInput("bundleExcludeExtensions");
@ -530,6 +527,7 @@ namespace WeChatWASM
config.CompileOptions.CustomNodePath = this.getDataInput("customNodePath");
config.CompileOptions.Webgl2 = this.getDataCheckbox("webgl2");
config.CompileOptions.enableIOSPerformancePlus = this.getDataCheckbox("iOSPerformancePlus");
config.CompileOptions.enableEmscriptenGLX = this.getDataCheckbox("EmscriptenGLX");
config.CompileOptions.fbslim = this.getDataCheckbox("fbslim");
config.SDKOptions.UseFriendRelation = this.getDataCheckbox("useFriendRelation");
config.SDKOptions.UseMiniGameChat = this.getDataCheckbox("useMiniGameChat");

View File

@ -125,6 +125,10 @@ namespace WeChatWASM
{
return WXConvertCore.UseIL2CPP;
});
WXExtEnvDef.RegisterAction("WXConvertCore.UseEmscriptenGLX", (args) =>
{
return WXConvertCore.UseEmscriptenGLX;
});
WXExtEnvDef.RegisterAction("UnityUtil.GetWxSDKRootPath", (args) =>
{
#if UNITY_2018

View File

@ -2,7 +2,7 @@ namespace WeChatWASM
{
public class WXPluginVersion
{
public static string pluginVersion = "202507040702"; // 这一行不要改他,导出的时候会自动替换
public static string pluginVersion = "202507070707"; // 这一行不要改他,导出的时候会自动替换
}
public class WXPluginConf

Binary file not shown.

View File

@ -381,6 +381,11 @@
视频url
</summary>
</member>
<member name="F:WeChatWASM.WXProjectConf.relativeDST">
<summary>
导出路径(相对路径)
</summary>
</member>
<member name="F:WeChatWASM.WXProjectConf.DST">
<summary>
导出路径(绝对路径)
@ -643,6 +648,11 @@
是否使用iOS高性能Plus
</summary>
</member>
<member name="F:WeChatWASM.CompileOptions.enableEmscriptenGLX">
<summary>
是否使用EmscriptenGLX
</summary>
</member>
<member name="F:WeChatWASM.CompileOptions.brotliMT">
<summary>
是否使用brotli多线程压缩
@ -773,6 +783,11 @@
试玩 appid
</summary>
</member>
<member name="F:WeChatWASM.WXPlayableProjectConf.relativeDST">
<summary>
导出路径(相对路径)
</summary>
</member>
<member name="F:WeChatWASM.WXPlayableProjectConf.DST">
<summary>
导出路径(绝对路径)

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 6beb6d8e857e38f8b6bebe7de23ff41d
guid: 74e660ca973d2a890864a7dbe6d81507
DefaultImporter:
externalObjects: {}
userData:

7
Runtime/.DS_Store.meta Normal file
View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 642125c0e8e14b15c2ca4c4ecc17dd36
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

View File

@ -0,0 +1,74 @@
fileFormatVersion: 2
guid: cccbd1d680cfe34fa1fef9e4875e5f06
PluginImporter:
externalObjects: {}
serializedVersion: 2
iconMap: {}
executionOrder: {}
defineConstraints: []
isPreloaded: 0
isOverridable: 1
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
- first:
: Any
second:
enabled: 0
settings:
Exclude Editor: 0
Exclude Linux64: 0
Exclude OSXUniversal: 0
Exclude WebGL: 0
Exclude Win: 0
Exclude Win64: 0
- first:
Any:
second:
enabled: 0
settings: {}
- first:
Editor: Editor
second:
enabled: 1
settings:
CPU: AnyCPU
DefaultValueInitialized: true
OS: AnyOS
- first:
Standalone: Linux64
second:
enabled: 1
settings:
CPU: AnyCPU
- first:
Standalone: OSXUniversal
second:
enabled: 1
settings:
CPU: AnyCPU
- first:
Standalone: Win
second:
enabled: 1
settings:
CPU: AnyCPU
- first:
Standalone: Win64
second:
enabled: 1
settings:
CPU: AnyCPU
- first:
WebGL: WebGL
second:
enabled: 1
settings: {}
- first:
WeixinMiniGame: WeixinMiniGame
second:
enabled: 1
settings: {}
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

View File

@ -3129,21 +3129,6 @@
 是否结束
</summary>
</member>
<member name="P:WeChatWASM.NotifyMiniProgramPlayableStatusOption.complete">
<summary>
接口调用结束的回调函数(调用成功、失败都会执行)
</summary>
</member>
<member name="P:WeChatWASM.NotifyMiniProgramPlayableStatusOption.fail">
<summary>
接口调用失败的回调函数
</summary>
</member>
<member name="P:WeChatWASM.NotifyMiniProgramPlayableStatusOption.success">
<summary>
接口调用成功的回调函数
</summary>
</member>
<member name="F:WeChatWASM.Gamepad.axes">
<summary>
一个表示控制器设备上存在的坐标轴的数组 (比如控制器摇杆)。

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: e59aba6a2f1488c6f45969265dada192
guid: f16b00080d6530ba94a60e10ef0653ce
DefaultImporter:
externalObjects: {}
userData:

Binary file not shown.

View File

@ -3135,21 +3135,6 @@
 是否结束
</summary>
</member>
<member name="P:WeChatWASM.NotifyMiniProgramPlayableStatusOption.complete">
<summary>
接口调用结束的回调函数(调用成功、失败都会执行)
</summary>
</member>
<member name="P:WeChatWASM.NotifyMiniProgramPlayableStatusOption.fail">
<summary>
接口调用失败的回调函数
</summary>
</member>
<member name="P:WeChatWASM.NotifyMiniProgramPlayableStatusOption.success">
<summary>
接口调用成功的回调函数
</summary>
</member>
<member name="F:WeChatWASM.Gamepad.axes">
<summary>
一个表示控制器设备上存在的坐标轴的数组 (比如控制器摇杆)。

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: a4f84d1484728bdc7f8b22c245c12954
guid: 915c569ad9083f479aeb5d000297162c
DefaultImporter:
externalObjects: {}
userData:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 378ec1b70057a8909e635a6c9cfa5119
guid: aa945e47f93774846e0a5d2924579215
DefaultImporter:
externalObjects: {}
userData:

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 62648a83e2ba1c338c5978aa188ab649
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: a8f53e76ee95be214ea1249dcc9419bf
guid: f05d80ef9b769e81e9e355d3e716b010
DefaultImporter:
externalObjects: {}
userData:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 66d4b85cb66bacf3fc36f5caa9f6f8b7
guid: 25ab96a09a4d8382d6ae3036ced875af
DefaultImporter:
externalObjects: {}
userData:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: e02c628e8bad9aba6f5531994e701970
guid: f334e5283b0b9f2b9010c1a00807810f
DefaultImporter:
externalObjects: {}
userData:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 6f16e832e45d21cc28a59e833675ccfb
guid: f3787bf06eec9b275327ee55550d2eb0
DefaultImporter:
externalObjects: {}
userData:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 1edbaea1008dad370de91fed0c7eefc8
guid: 71451591b62c87dd1a6b234a62f57ce5
DefaultImporter:
externalObjects: {}
userData:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 532906ec8c2ca80ed2815c15f7fdc580
guid: 7f8413b609c1377372835167f20c5f00
DefaultImporter:
externalObjects: {}
userData:

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 160d4706b8fba8f00ea5215f5d317119
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 660447fce852d801d3f7ab0b534cd629
guid: 89e1c9dde61948a83a1bdf010ac606d2
DefaultImporter:
externalObjects: {}
userData:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 8c545d75be250f0164da77626a281617
guid: 463fdd424f8cc79871ccbcc0ae6c8807
DefaultImporter:
externalObjects: {}
userData:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: dc3d136eff52d98cd58a57c7f3adf005
guid: 2412ee537b6e0edb01086844579a9293
DefaultImporter:
externalObjects: {}
userData:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 5a4bcd98fdaa6d2e66832185a7f4e6cb
guid: 0b31c91e9954dc70d5d9353454530042
DefaultImporter:
externalObjects: {}
userData:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 10b4e6af4a614ab30ca79431ed4a9e6b
guid: 021f46ef2b1024408727961291c05a97
DefaultImporter:
externalObjects: {}
userData:

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: b4386d6f2ba135c90e48247b99591493
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 3dceebe8c0e7a910e2df376215b148f5
guid: 993e0a7c1c21eafb31c9c2f822a91989
DefaultImporter:
externalObjects: {}
userData:

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 9645077ab3c6c559700ebcf9d9adbcad
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 0b2fee6090419a1ad6a65b16f578b0f6
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: e23f4dc5b5ffa854c9f1cc3524237dd0
guid: fac112a61e0d21bdf0f72c2fcd19a2a2
DefaultImporter:
externalObjects: {}
userData:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 5b39ffd407f49c5a1c6eb206bfb01c3c
guid: 94a369ab1de1d870ca37c317165c6e38
DefaultImporter:
externalObjects: {}
userData:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 411d2b61a4a2a9eace42f3dbb562e241
guid: 2cea64da29dff483427227ce05eb6ffc
DefaultImporter:
externalObjects: {}
userData:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 345ca6b02b18f9c36d6a07137a78810f
guid: 8ba8161a6c9661eb408afedeacc530a6
DefaultImporter:
externalObjects: {}
userData:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 6f6a245b02b4bda5690f88e0d1f26a3d
guid: ece5fb3ae66b47757eee87adad96f5b2
DefaultImporter:
externalObjects: {}
userData:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 4722e9a80cc4e6fc3edf76e7d52564f1
guid: eea159e58dcbbad4633ef01969a5ea3e
DefaultImporter:
externalObjects: {}
userData:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 602d8945591893d084f14f5e24e98d8c
guid: a604bb33f1a9267270d2c1e304314653
DefaultImporter:
externalObjects: {}
userData:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: a9501b27f06a23b8e16c4d5afc0a5c16
guid: d6f35ce84aae939615678c1657a05c24
DefaultImporter:
externalObjects: {}
userData:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 5c4ff6528699ce46ddbc56d5189c53bc
guid: 3e8add8278611f659984436496c29b39
DefaultImporter:
externalObjects: {}
userData:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: b03526b6664a531be62c5490b0892d60
guid: 5404c3000e3fe8a6a1c1907fa87383ff
DefaultImporter:
externalObjects: {}
userData:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 1bcc8974c13993522116dacf529ec16e
guid: 0c2a5d91ffd7b5a2b2813190e30845f2
DefaultImporter:
externalObjects: {}
userData:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 6d474b23e62f46f39af785c5f910cad8
guid: be783cfbab7ce6ad8f0c4422ff44873d
DefaultImporter:
externalObjects: {}
userData:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: bf001c18157d62a6c5fb9aa9d610d764
guid: 88ee5502b0d2ec631fe8b4cc2feabe2c
DefaultImporter:
externalObjects: {}
userData:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: fc3c43f003739e59dc1a51e852228a4a
guid: c00ec3283db848107f0e0d03cfe24633
DefaultImporter:
externalObjects: {}
userData:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 6a79e063522f60c30dcae456beb8884a
guid: c35c781ca50fdc2ee96af9b2898928d8
DefaultImporter:
externalObjects: {}
userData:

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: b2648ec9b37619e1f6a09ec7a5f67b30
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 7444ac36dac0b588df9bf586978fae3b
guid: d4fa08cc77f29d02c943072067d38f56
DefaultImporter:
externalObjects: {}
userData:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 983b82415ec1a5caa54cf1028d785385
guid: c9e447948e5921ffce75d79ccaa5e123
DefaultImporter:
externalObjects: {}
userData:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 3078e40408b54ad1c1e5981629982baa
guid: 3c6b60f14b6e6aca8d7fe2c4ee2d5df5
DefaultImporter:
externalObjects: {}
userData:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 30795643b1525685f39f1a035bd1e056
guid: 95e85084552ab9d8fb98acd33539ace6
DefaultImporter:
externalObjects: {}
userData:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: c7184616c88850d801def3d93f9c523e
guid: 40242a145ede4526c8ae7052f1ede57a
DefaultImporter:
externalObjects: {}
userData:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 7cef52a0aa314b89a0e1dd850517a2d8
guid: c3c5bcc9fc7719a97d766ad6a7255427
DefaultImporter:
externalObjects: {}
userData:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 38e7a50ebda469ac6612c46892d6585c
guid: 67a10d52ed2ece3d6b0c6b52bfc9d8b2
DefaultImporter:
externalObjects: {}
userData:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 830e938adedeae555149a69d6c5bd904
guid: 97713185759d783cec9b857562ddb600
DefaultImporter:
externalObjects: {}
userData:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: f9ac97d5924faecd30597b74f60446a9
guid: ca46f6a764923c99872888dd2aecbd28
DefaultImporter:
externalObjects: {}
userData:

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 1fa67d4a2f2fee9c1bdc0c760379979c
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: cbe44576537d2973ae48a49e8ba8e287
guid: c4c1c4c5f9411e7bd5ac80c5c303ae25
DefaultImporter:
externalObjects: {}
userData:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 5b4775686c1735fe238af26151b8bed3
guid: 092fa5bf0ea4b89b941d935e46e82851
DefaultImporter:
externalObjects: {}
userData:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 68382a90b68393338016e34b0cac6bc5
guid: cdd80673db8716fbd77a506c18926523
DefaultImporter:
externalObjects: {}
userData:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 0736cf927e54cbbcd9e64d2af3ca0230
guid: 3c79ce4d05827ea32429e40f1972533f
DefaultImporter:
externalObjects: {}
userData:

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 26d462804d96db8a9f62cfe358d37eac
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 785a92bb3eae3f6e9a46601a513f241b
guid: 30058373c05ae57d00a53eb000e610a9
DefaultImporter:
externalObjects: {}
userData:

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 8568ba4f285fc207d8acb3ec46b90d30
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 33d5356c74dbd3c6d752bfcc3d655632
guid: 72a33ef6c783aeb5d46e5c9bfb47f6b5
DefaultImporter:
externalObjects: {}
userData:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 4a94bac747e8abccf28e03c39053599b
guid: 996930679f647b8b3dbd406b6541cb61
DefaultImporter:
externalObjects: {}
userData:

View File

@ -45,7 +45,7 @@ const isIOSWebgl2SystemVersionValid = compareVersion(systemVersion, '15.0') || G
// Android客户端版本>=8.0.19支持webgl2
const isAndroidWebGL2ClientVersionValid = compareVersion(version, '8.0.19');
// 是否用了webgl2
const isWebgl2 = () => GameGlobal.managerConfig.contextConfig.contextType === 2;
const isWebgl2 = () => GameGlobal.managerConfig.contextConfig.contextType === 2 || GameGlobal.managerConfig.contextConfig.contextType === 4;
// 是否支持BufferURL
export const isSupportBufferURL = !isPc
&& (isH5Renderer

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 1daa7cc23f9073d6f73834d0649d8934
guid: f2222e587a36e93de061ccc80513b49b
DefaultImporter:
externalObjects: {}
userData:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: e8248c9c263161f6f550a099f4c47674
guid: 41a1b7ae1cbb4c65a240bd8498384e03
DefaultImporter:
externalObjects: {}
userData:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 7e4b67579af96dda090d96f7cedc4bb8
guid: bb6ffa27ee67448a7c22645b1f5a7dea
DefaultImporter:
externalObjects: {}
userData:

View File

@ -27,7 +27,7 @@ const managerConfig = {
'$PRELOAD_LIST',
],
contextConfig: {
contextType: $WEBGL_VERSION, // 1: webgl1 2: webgl2
contextType: $WEBGL_VERSION, // 1: webgl1, 2: webgl2, 3: wxwebgl, 4: wxwebgl2, 5: wxmetal
},
PROFILER_UPLOAD_URL: '',
};
@ -48,6 +48,7 @@ checkVersion().then((enable) => {
canvas,
events: GameGlobal.events,
WXWASMSDK: GameGlobal.WXWASMSDK,
isSupportEmscriptenGLX: wx.env.isSuppportEmscriptenGLX || wx.env.isSupportEmscriptenGLX || false,
},
}).default;
}

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 2e7009d6060ce6fbfa2997ac6a4c9ae0
guid: cb9f9a518d1960625d21b130690ad9f0
DefaultImporter:
externalObjects: {}
userData:

View File

@ -23,7 +23,7 @@
],
"plugins": {
"UnityPlugin": {
"version": "1.2.74",
"version": "1.2.77",
"provider": "wxe5a48f1ed5f544b7",
"contexts": [
{
@ -32,7 +32,7 @@
]
},
"Layout": {
"version": "1.0.7",
"version": "1.0.15",
"provider": "wx7a727ff7d940bb3f",
"contexts": [
{

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 923940b24460036e8969d1f70f4f7d2c
guid: 61e493fcf717645a70db542594059b04
DefaultImporter:
externalObjects: {}
userData:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 733833739fc4e14615e059f7a0c38c69
guid: b7eae64f459d3a135b19778019204937
DefaultImporter:
externalObjects: {}
userData:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: c6775b5c126d0eb1e18e38578a54242a
guid: 0ac11f5419021df611547efd26797b0e
DefaultImporter:
externalObjects: {}
userData:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 3edff6f212cb40a6703971e51d30d523
guid: 33ea9e620706ce74c5b79de7add5aa28
DefaultImporter:
externalObjects: {}
userData:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 97b8126a02bbd666b9a02acf215ae4d7
guid: 9cc70236b92aede755550728b72e34e7
DefaultImporter:
externalObjects: {}
userData:

View File

@ -56,7 +56,6 @@ function LayoutWithTplAndStyle(xml, style) {
Layout.clear();
Layout.init(xml, style);
Layout.layout(sharedContext);
console.log(Layout);
}
// 仅仅渲染一些提示,比如数据加载中、当前无授权等
function renderTips(tips = '') {

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: cf058ca7a04d9121ecd9a1d1d6c5cc26
guid: 8841a571c8163d0bab9233efe0707679
DefaultImporter:
externalObjects: {}
userData:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: ae4ee3d7afba38c7389e13e6bb9a1d5e
guid: 5207beba576ef91291c1ac95cbde2811
DefaultImporter:
externalObjects: {}
userData:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: fdefc5e8ccb3a81cbf8fb999d6402b29
guid: fb1c3b3164c4702b8e32cf00be0fcec4
DefaultImporter:
externalObjects: {}
userData:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 0bba4a8ffd59075d1f54288a129a8379
guid: 338ebceab2cb7d6cbe73bf93e520fe90
DefaultImporter:
externalObjects: {}
userData:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: d5dd5a522a0dbe015665379e80852764
guid: 2e4554f159a2ce6bace153aed038414d
DefaultImporter:
externalObjects: {}
userData:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 5ef53c0fa0fd693a47f6055a176d2fda
guid: 9998bc210d51173930a8a1dbfceea592
DefaultImporter:
externalObjects: {}
userData:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 72b180a2197cb80babce6e78115d78a0
guid: 0e012920594e5adf04a830a93b3ce9fa
DefaultImporter:
externalObjects: {}
userData:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: ff758127d5c4733e9c273b463fd32596
guid: 1cbe8e465336b3b163f1644b3b915c77
DefaultImporter:
externalObjects: {}
userData:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 7d26282bfb2255a275538b5bc473b054
guid: a5ee4dea6629d5c4fd6af96a76e478cb
DefaultImporter:
externalObjects: {}
userData:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 1b69ff82e5ffd409934ed4dd4d7cabba
guid: eeff9a140195583c323271d38a821e61
DefaultImporter:
externalObjects: {}
userData:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 4528247789985af484d40bb3bb110c03
guid: 3f6ce36228b498014ffe88b82efbd2eb
DefaultImporter:
externalObjects: {}
userData:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: f360c04f594bc72a476087d646502138
guid: de3f008c8b9160ca06a6b9d5ef8a077f
DefaultImporter:
externalObjects: {}
userData:

View File

@ -63,9 +63,10 @@ export default function getStyle(data) {
width: data.width * 0.35,
height: (data.height / 2 / 3) * 0.4,
textAlign: 'center',
lineHeight: (data.height / 2 / 3) * 0.4,
verticalAlign: 'center',
fontSize: data.width * 0.043,
textOverflow: 'ellipsis',
whiteSpace: 'nowrap',
color: '#fff',
},
rankScoreTip: {

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 2607e8b9532a15ddae8a8c5763554bf7
guid: 35cb7434acf35fd54561ffc689452396
DefaultImporter:
externalObjects: {}
userData:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 1ee2800b1b55a9fc07c42b93cf2f81aa
guid: 0ade745bd6c8f280a75956329a84c06e
DefaultImporter:
externalObjects: {}
userData:

Some files were not shown because too many files have changed in this diff Show More