update js code & sdk update
(cherry picked from commit 0e48f5aa891fc75fcbe3a6e7774e81d7d70db8e6)
| | |
| | | |
| | | const managerConfig = { |
| | | DATA_CDN: "$DEPLOY_URL", |
| | | resourceCdnUrl: "$RESOURCE_CDN_URL", |
| | | DATA_FILE_MD5: "$DATA_MD5", |
| | | CODE_FILE_MD5: "$CODE_MD5", |
| | | GAME_NAME: "$GAME_NAME", |
| | |
| | | |
| | | function reportGameEvent(eventName, data) { |
| | | try { |
| | | if (tt && tt.reportAnalytics) { |
| | | tt.reportAnalytics({ |
| | | eventName: eventName, |
| | | data: data || {}, |
| | | }); |
| | | if (typeof tt !== 'undefined' && typeof tt.reportAnalytics === 'function') { |
| | | tt.reportAnalytics(eventName, data || {}); |
| | | } else { |
| | | console.warn('[Analytics] reportAnalytics unavailable:', eventName); |
| | | } |
| | | } catch (e) { |
| | | console.warn('[Analytics] report failed:', eventName, e); |
| | |
| | | // 加载页的素材配置 |
| | | materialConfig: { |
| | | backgroundImage: 'images/background.png',// 背景图片 |
| | | // iconImage: 'images/unity_logo.png', // icon图片,一般不更换 |
| | | iconImage: 'images/unity_logo.png', // icon图片,一般不更换 |
| | | }, |
| | | }, |
| | | }); |
| | |
| | | if (e.type === launchEventType.launchPlugin) reportGameEvent('unity_plugin_ready'); |
| | | if (e.type === launchEventType.loadWasm) reportGameEvent('wasm_load'); |
| | | if (e.type === launchEventType.compileWasm) reportGameEvent('wasm_compile'); |
| | | if (e.type === launchEventType.loadAssets) { } |
| | | if (e.type === launchEventType.readAssets) { } |
| | | if (e.type === launchEventType.prepareGame) reportGameEvent('unity_prepare'); |
| | | }); |
| | | |
| | | gameManager.onModulePrepared(() => { |
| | | // unityModule has been called |
| | | }); |
| | | |
| | | gameManager.onLogError = function (err) { |
| | | // 插件捕获到引擎错误后,通过此事件抛给游戏 |
| | | console.error(err); |
| | |
| | | ], |
| | | "plugins": { |
| | | "UnityPlugin": { |
| | | "version": "4.41.2", |
| | | "version": "4.42.2", |
| | | "provider": "tt674511f8f84ea91612" |
| | | } |
| | | }, |
| | |
| | | EditorGUILayout.BeginVertical("frameBox", GUILayout.ExpandWidth(true)); |
| | | |
| | | CreateBoolean("needCompress", "压缩首包资源"); |
| | | if (!_editingBooleanData["needCompress"]) |
| | | { |
| | | EditorGUILayout.HelpBox("请确保线上包勾选此选项以进行br压缩", MessageType.Warning); |
| | | } |
| | | |
| | | var isOldFormat = ReadProperty<bool>(miniGameProperty, "isOldBuildFormat"); |
| | | if (!isOldFormat) |
| | | { |
| | | CreateEnumPopup("dataLoadType", "首包资源加载方式", new[] {"CDN","Package"}, new[] { 0, 1 }, |
| | | "Package代表data资源随游戏包体一起发布,CDN代表data资源在游戏包外,需额外部署在CDN上"); |
| | | if (_editingEnumData["dataLoadType"] == (int)DataLoadType.CDN) |
| | | { |
| | | EditorGUILayout.HelpBox("启用Data CDN会导致首包状态下fp耗时劣化", MessageType.Warning); |
| | | } |
| | | } |
| | | |
| | | CreateInput("dataFileSubPrefix","首包资源加载前缀","首包资源访问路径拼接规则:DATA_CDN + dataFileSubPrefix + datafilename"); |
| | |
| | | #endregion |
| | | } |
| | | } |
| | | #endif |
| | | #endif |
| New file |
| | |
| | | <linker> |
| | | <assembly fullname="UnityEngine.CoreModule"> |
| | | <type fullname="UnityEngine.Rendering.GraphicsSettings" preserve="all" /> |
| | | </assembly> |
| | | </linker> |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 0f6a088a12daddf469e8f122e89a8f6d |
| | | TextScriptImporter: |
| | | externalObjects: {} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| | |
| | | { |
| | | "displayName": "TTSDK", |
| | | "name": "com.bytedance.starksdk", |
| | | "version": "6.9.3", |
| | | "description": "TTSDK Plugin\n\n最近更新:\n\n[6.9.2]\n[Feature] EmscriptenGLX 构建工具上线\n[Feature] 【小游戏】厂商开放能力 · 分享得好礼\n[Optimize] 修复 TTAssetBundle 潜在内存泄漏问题\n\n[6.9.1]\n[Feature] 全端经营能力增加拉端 API\n[BugFix] 特定情况下分包确缺失字段的问题\n\n[6.9.0]\n[Feature]新增小游戏音频播放路由控制 TTAudioRouteManager; \n\n[6.8.0]\n[Feature] wasm上线新分包方案\n\n[6.7.9]\n[Bugfix] 修复不勾压缩首包资源时IDE无法进入的问题\n\n[6.7.8]\n[Feature] 隐私接口新增权限校验\n\n[6.7.7]\n[Feature] 新增wasm分包相关字段\n[Feature] 支持团结引擎新的buildTarget\n[Feature] 游戏维度玩家多场景通行能力\n\n[6.7.6]\n[Feature] 试玩广告能力增加接口\n\n[6.7.5]\n[Feature]试玩广告\n[Bugfix]修复preloadconcurrent C#层报错\n\n[6.7.4]\n[Feature] 支持小游戏分享至日常体裁\n[Optimize] 优化cdn模式打包流程\n[Bugfix] 修复metal下摇杆问题\n\n[6.7.3]\n[Feature] iOS 端支持 EmscriptenGLX\n[Feature] 支持全端经营能力\n[Bugfix] custom template 兼容 starksdk\n\n[6.7.2]\n[Feature] 首包资源支持开发者配置 CDN 的方式进行加载\n\n[6.7.1]\n[Bugfix] 修复新包体 UnityPlugin 非抖音宿主金币 API bug\n\n[6.7.0]\n[Feature]【仅阅读】【小游戏】平台实时语音能力优化\n\n[6.6.9]\n[BugFix]修复 IDE 环境网络请求异常问题\n[BugFix]修复特定场景内存泄漏\n[BugFix]修复特定游戏加载失败\n\n[6.6.8]\n[Feature]Metal模式下支持gc\n[Bugfix]异常上报信息修复,传递完整的error对象,避免字符串消息丢失stack信息\n\n[6.6.7]\n[Bugfix]修复生成预下载列表时会报错的问题\n[Bugfix]修复安卓在监听OnShareAppMessage时拉起两个分享弹窗\n[Bugfix]修复沙盒加载失败问题\n[Bugfix]混合引擎链路,useDataCDNAsStreamingAssetsUrl使用远程StreamingAsset资源,加载TTAB失败的bug\n\n[6.6.5]\n[BugFix]预下载配置支持aa路径&&修复构建结果appid填充不正确的问题\n[Optimize]增加对Eventsystem.current的判空逻辑\n[Optimize]增加对Eventsystem.current的判空逻辑\n\n[6.6.4]\n[Feature]新增调用IM能力\n\n[6.6.3]\n[Feature]混合引擎构建选项入口完全放开\n[Feature]支持游戏自定义动态分享图片\n\n[6.6.1]\n[Feat]文件系统 Write/WriteSync 接口支持传入 position\n[Feat]OnShow 事件支持 showFrom 字段\n[Optimize]优化一些日志的打印\n\n[6.6.0]\n[FIX]修复6.5.9TTSDK版本报错问题\n[FIX]修复混合引擎cp自定义代码无法执行的问题\n\n[6.5.9]\n[FIX]修复触摸逻辑中的排序问题\n[Feat]激励分享拓展小游戏题材\n[Feat]新增团结引擎 Metal 能力适配\n[Feat]PC 抖小逻辑兼容\n\n[6.5.8]\n[FIX]修复文字渲染异常问题\n[6.5.7]\n[Feature]增加云抖小 GetPhoneNumberAuthState、GrantPhoneNumber、ShowCloudGame 接口\n[Bugfix]修复未设置 Unity Profiler IP 时提示报错的问题\n[Bugfix]修复模板拷贝不正确的问题\n\n[6.5.6]\n[Feature]增加 SetPreloadList、PreloadConcurrent 接口\n\n[6.5.5]\n[Bugfix]修复团结引擎下使用 douyin_profile 构建时会出错的问题\n\n[6.5.4]\n[Feature]新增错误监听onError接口\n[Feature]新增OnMemoryWarning接口\n[Feature]新增获取设备当前的地理位置接口\n[Feature]新增TriggerGC接口\n[Feature]新增二维码扫码接口\n\n[6.5.3]\n[Feature]新增录音相关接口\n[Feature]新增罗盘相关接口\n[Feature]新增缓存文件清理接口\n[Feature]新增即看即玩接口\n\n[6.5.2]\n[Feature]交互弹窗类接口接入\n[Feature]新增混合引擎功能\n[Optimize]GetSystemInfo不依赖TT.InitSDK接口\n[Optimize]不再支持开发者配置apk的基础名称\n\n[6.4.5]\n[Feature]非抖音宿主增加客服能力\n\n[6.4.4]\n[Feature]增加图片操作接口:ChooseImage、PreviewImage、GetImageInfo\n\n[6.4.3]\n[Feature]支持群铭牌设置查询接口\n[Bugfix]修复团结 buildprofile 面板 config 配置为空时读取错误的问题\n\n[6.4.2]\n[Bugfix]修复未正确统计已使用磁盘空间大小的问题\n[Bugfix]修复保存数据时日志错误打印的问题\n\n[6.4.1]\n[Feature]增加群铭牌接入能力\n\n[6.4.0]\n[Feature]支持Unity和团结引擎配置Profiler机器IP\n\n[6.3.9]\n[Feature]增加跳转反馈页能力\n[Feature]新增接口-保存图片到相册\n[Feature]团结引擎在buildTarget上增加子平台的超链接\n\n[6.3.8]\n[Bugfix]修复IDE中音频OnStop回调触发了OnEnd事件\n[Feature]增加文件流式读写能力\n\n[6.3.7]\n[Bugfix]【团结引擎】development版本打包,会有报错\n\n[6.3.6]\n[Feature]增加VideoPlayer适配\n\n[6.3.4]\n[Feature]增加OnWindowResize接口\n\n[6.3.3]\n[Feature]增加StoreFeedData接口\n\n[6.3.2]\n[Feature] 对齐普通小游戏震动接口\n[Bugfix] 修复 UDPSocket 对象销毁时报错的问题\n[Bugfix] 修复 StarkAudioManager 回调未触发的问题\n[Bugfix] 修复 Unity 2022 及以上版本调用 TTKeyboard 报错的问题\n[Bugfix] 修复团结引擎中使用 TTSDK Build Tool 打包时编辑器崩溃问题\n\n[6.3.1]\n[Feature] 增加转屏接口\n\n[6.3.0]\n[Feature] 构建工具提供预下载配置能力\n[Feature] 完善了对新版本团结引擎的适配\n\n[6.2.7]\n[Feature] 新增设置渲染精度接口\n[Bugfix] 多点触控 EditorMockEnabled 调试开关不生效问题修复\n\n[6.2.6]\n[Bugfix] LogManager不可以在Application.logMessageReceived方法中调用问题\n\n[6.2.5]\n[Feature] 添加设置帧率能力\n[Feature] 直播扩展组件能力补充\n[Feature] 补齐WebGL新文件系统AppendFile/AppendFileSync/ReadDir/ReadDirSync/Truncate/TruncateSync Api\n\n[6.2.4]\n[Feature] Feed直玩添加从Feed流进入游戏、游戏退回到Feed流的监听\n[Bugfix] TT.GetSetting始终返回空问题\n\n[6.2.2]\n[Bugfix] 广告接口优化\n[Bugfix] PC键鼠接口CanIUse修正\n[Bugfix] 系统字体能力进行容错处理\n\n[6.2.1]\n[Bugfix] 广告接口优化\n[Feature] 新增 PC 端键盘/鼠标/滚轮/光标样式相关接口\n\n[6.2.0]\n[Feature] 新增反馈日志、实时日志功能以及相关api接口\n[Bugfix] 修复插屏和激励广告WebGL方案CanIUse接口始终返回false问题\n[Bugfix] 购买礼包接口支持注册一次回调多次\n[Feature] Unity Tools 工具合并至 TTSDK, 原 StarkUnityTools 废弃\n\n[6.1.3]\n[Feature] 新增设备网络相关能力api\n[Bugfix] 修复Native方案分享能力传入query情况,必现分享失败问题\n\n[6.1.2]\n[Bugfix] [重要] 修复部分文件系统接口回调函数未释放问题\n[Bugfix] 修复 TTAssetBundle 低版本降级能力构建时可能被代码裁剪的问题\n\n[6.1.1]\n[Feature] 新增公会群接口\n[Feature] 新增支付礼包接口\n\n[6.1.0]\n[Bugfix] 修复已知问题\n\n[6.0.9]\n[Bugfix] 修复使用 TTInputOverrideBypass 引起的 SDK 未初始化问题\n[Bugfix] 修复在 IDE 模拟器中重启游戏报错的问题\n\n[6.0.8]\n[New] 新增游戏版本更新管理器能力\n\n[6.0.5]\n[Bugfix] 修复激励视频广告在 WebGL 下创建后立即播放问题\n\n[6.0.3]\n[Bugfix] 修复 Native 方案激励视频广告播放的回调问题\n\n[6.0.2]\n[Bugfix] 修复Native方案直玩订阅能力不可用问题\n\n[6.0.1]\n[Bugfix] TTAssetBundle 优化能力兼容 Addressables 1.19 版本(参考文档:使用 TTAssetBundle 优化内存)\n\n[6.0.0]\n[New] 升级了 API 的调用方式,由原来的 StarkSDK.API 升级为 TT 的调用形式(参考文档:旧版 StarkSdk API 迁移 TTSDK API 说明)\n[Feature] 提供了 TTSDK API 升级工具(参考文档:TTSDK API 升级工具)", |
| | | "version": "6.9.4", |
| | | "description": "TTSDK Plugin\n\n最近更新:\n\n[6.9.4]\n[Feature] 增加了一些打包提示\n[Feature] 支持更高版本的 Unity 和团结引擎\n[Feature] 优化了一些 GC 问题\n[Fix] 修复新包体格式音频资源 url 失效的问题\n[Fix] 修复 GLX 播放广告后音频消失的问题\n\n[6.9.2]\n[Feature] EmscriptenGLX 构建工具上线\n[Feature] 【小游戏】厂商开放能力 · 分享得好礼\n[Optimize] 修复 TTAssetBundle 潜在内存泄漏问题\n\n[6.9.1]\n[Feature] 全端经营能力增加拉端 API\n[BugFix] 特定情况下分包确缺失字段的问题\n\n[6.9.0]\n[Feature]新增小游戏音频播放路由控制 TTAudioRouteManager; \n\n[6.8.0]\n[Feature] wasm上线新分包方案\n\n[6.7.9]\n[Bugfix] 修复不勾压缩首包资源时IDE无法进入的问题\n\n[6.7.8]\n[Feature] 隐私接口新增权限校验\n\n[6.7.7]\n[Feature] 新增wasm分包相关字段\n[Feature] 支持团结引擎新的buildTarget\n[Feature] 游戏维度玩家多场景通行能力\n\n[6.7.6]\n[Feature] 试玩广告能力增加接口\n\n[6.7.5]\n[Feature]试玩广告\n[Bugfix]修复preloadconcurrent C#层报错\n\n[6.7.4]\n[Feature] 支持小游戏分享至日常体裁\n[Optimize] 优化cdn模式打包流程\n[Bugfix] 修复metal下摇杆问题\n\n[6.7.3]\n[Feature] iOS 端支持 EmscriptenGLX\n[Feature] 支持全端经营能力\n[Bugfix] custom template 兼容 starksdk\n\n[6.7.2]\n[Feature] 首包资源支持开发者配置 CDN 的方式进行加载\n\n[6.7.1]\n[Bugfix] 修复新包体 UnityPlugin 非抖音宿主金币 API bug\n\n[6.7.0]\n[Feature]【仅阅读】【小游戏】平台实时语音能力优化\n\n[6.6.9]\n[BugFix]修复 IDE 环境网络请求异常问题\n[BugFix]修复特定场景内存泄漏\n[BugFix]修复特定游戏加载失败\n\n[6.6.8]\n[Feature]Metal模式下支持gc\n[Bugfix]异常上报信息修复,传递完整的error对象,避免字符串消息丢失stack信息\n\n[6.6.7]\n[Bugfix]修复生成预下载列表时会报错的问题\n[Bugfix]修复安卓在监听OnShareAppMessage时拉起两个分享弹窗\n[Bugfix]修复沙盒加载失败问题\n[Bugfix]混合引擎链路,useDataCDNAsStreamingAssetsUrl使用远程StreamingAsset资源,加载TTAB失败的bug\n\n[6.6.5]\n[BugFix]预下载配置支持aa路径&&修复构建结果appid填充不正确的问题\n[Optimize]增加对Eventsystem.current的判空逻辑\n[Optimize]增加对Eventsystem.current的判空逻辑\n\n[6.6.4]\n[Feature]新增调用IM能力\n\n[6.6.3]\n[Feature]混合引擎构建选项入口完全放开\n[Feature]支持游戏自定义动态分享图片\n\n[6.6.1]\n[Feat]文件系统 Write/WriteSync 接口支持传入 position\n[Feat]OnShow 事件支持 showFrom 字段\n[Optimize]优化一些日志的打印\n\n[6.6.0]\n[FIX]修复6.5.9TTSDK版本报错问题\n[FIX]修复混合引擎cp自定义代码无法执行的问题\n\n[6.5.9]\n[FIX]修复触摸逻辑中的排序问题\n[Feat]激励分享拓展小游戏题材\n[Feat]新增团结引擎 Metal 能力适配\n[Feat]PC 抖小逻辑兼容\n\n[6.5.8]\n[FIX]修复文字渲染异常问题\n[6.5.7]\n[Feature]增加云抖小 GetPhoneNumberAuthState、GrantPhoneNumber、ShowCloudGame 接口\n[Bugfix]修复未设置 Unity Profiler IP 时提示报错的问题\n[Bugfix]修复模板拷贝不正确的问题\n\n[6.5.6]\n[Feature]增加 SetPreloadList、PreloadConcurrent 接口\n\n[6.5.5]\n[Bugfix]修复团结引擎下使用 douyin_profile 构建时会出错的问题\n\n[6.5.4]\n[Feature]新增错误监听onError接口\n[Feature]新增OnMemoryWarning接口\n[Feature]新增获取设备当前的地理位置接口\n[Feature]新增TriggerGC接口\n[Feature]新增二维码扫码接口\n\n[6.5.3]\n[Feature]新增录音相关接口\n[Feature]新增罗盘相关接口\n[Feature]新增缓存文件清理接口\n[Feature]新增即看即玩接口\n\n[6.5.2]\n[Feature]交互弹窗类接口接入\n[Feature]新增混合引擎功能\n[Optimize]GetSystemInfo不依赖TT.InitSDK接口\n[Optimize]不再支持开发者配置apk的基础名称\n\n[6.4.5]\n[Feature]非抖音宿主增加客服能力\n\n[6.4.4]\n[Feature]增加图片操作接口:ChooseImage、PreviewImage、GetImageInfo\n\n[6.4.3]\n[Feature]支持群铭牌设置查询接口\n[Bugfix]修复团结 buildprofile 面板 config 配置为空时读取错误的问题\n\n[6.4.2]\n[Bugfix]修复未正确统计已使用磁盘空间大小的问题\n[Bugfix]修复保存数据时日志错误打印的问题\n\n[6.4.1]\n[Feature]增加群铭牌接入能力\n\n[6.4.0]\n[Feature]支持Unity和团结引擎配置Profiler机器IP\n\n[6.3.9]\n[Feature]增加跳转反馈页能力\n[Feature]新增接口-保存图片到相册\n[Feature]团结引擎在buildTarget上增加子平台的超链接\n\n[6.3.8]\n[Bugfix]修复IDE中音频OnStop回调触发了OnEnd事件\n[Feature]增加文件流式读写能力\n\n[6.3.7]\n[Bugfix]【团结引擎】development版本打包,会有报错\n\n[6.3.6]\n[Feature]增加VideoPlayer适配\n\n[6.3.4]\n[Feature]增加OnWindowResize接口\n\n[6.3.3]\n[Feature]增加StoreFeedData接口\n\n[6.3.2]\n[Feature] 对齐普通小游戏震动接口\n[Bugfix] 修复 UDPSocket 对象销毁时报错的问题\n[Bugfix] 修复 StarkAudioManager 回调未触发的问题\n[Bugfix] 修复 Unity 2022 及以上版本调用 TTKeyboard 报错的问题\n[Bugfix] 修复团结引擎中使用 TTSDK Build Tool 打包时编辑器崩溃问题\n\n[6.3.1]\n[Feature] 增加转屏接口\n\n[6.3.0]\n[Feature] 构建工具提供预下载配置能力\n[Feature] 完善了对新版本团结引擎的适配\n\n[6.2.7]\n[Feature] 新增设置渲染精度接口\n[Bugfix] 多点触控 EditorMockEnabled 调试开关不生效问题修复\n\n[6.2.6]\n[Bugfix] LogManager不可以在Application.logMessageReceived方法中调用问题\n\n[6.2.5]\n[Feature] 添加设置帧率能力\n[Feature] 直播扩展组件能力补充\n[Feature] 补齐WebGL新文件系统AppendFile/AppendFileSync/ReadDir/ReadDirSync/Truncate/TruncateSync Api\n\n[6.2.4]\n[Feature] Feed直玩添加从Feed流进入游戏、游戏退回到Feed流的监听\n[Bugfix] TT.GetSetting始终返回空问题\n\n[6.2.2]\n[Bugfix] 广告接口优化\n[Bugfix] PC键鼠接口CanIUse修正\n[Bugfix] 系统字体能力进行容错处理\n\n[6.2.1]\n[Bugfix] 广告接口优化\n[Feature] 新增 PC 端键盘/鼠标/滚轮/光标样式相关接口\n\n[6.2.0]\n[Feature] 新增反馈日志、实时日志功能以及相关api接口\n[Bugfix] 修复插屏和激励广告WebGL方案CanIUse接口始终返回false问题\n[Bugfix] 购买礼包接口支持注册一次回调多次\n[Feature] Unity Tools 工具合并至 TTSDK, 原 StarkUnityTools 废弃\n\n[6.1.3]\n[Feature] 新增设备网络相关能力api\n[Bugfix] 修复Native方案分享能力传入query情况,必现分享失败问题\n\n[6.1.2]\n[Bugfix] [重要] 修复部分文件系统接口回调函数未释放问题\n[Bugfix] 修复 TTAssetBundle 低版本降级能力构建时可能被代码裁剪的问题\n\n[6.1.1]\n[Feature] 新增公会群接口\n[Feature] 新增支付礼包接口\n\n[6.1.0]\n[Bugfix] 修复已知问题\n\n[6.0.9]\n[Bugfix] 修复使用 TTInputOverrideBypass 引起的 SDK 未初始化问题\n[Bugfix] 修复在 IDE 模拟器中重启游戏报错的问题\n\n[6.0.8]\n[New] 新增游戏版本更新管理器能力\n\n[6.0.5]\n[Bugfix] 修复激励视频广告在 WebGL 下创建后立即播放问题\n\n[6.0.3]\n[Bugfix] 修复 Native 方案激励视频广告播放的回调问题\n\n[6.0.2]\n[Bugfix] 修复Native方案直玩订阅能力不可用问题\n\n[6.0.1]\n[Bugfix] TTAssetBundle 优化能力兼容 Addressables 1.19 版本(参考文档:使用 TTAssetBundle 优化内存)\n\n[6.0.0]\n[New] 升级了 API 的调用方式,由原来的 StarkSDK.API 升级为 TT 的调用形式(参考文档:旧版 StarkSdk API 迁移 TTSDK API 说明)\n[Feature] 提供了 TTSDK API 升级工具(参考文档:TTSDK API 升级工具)", |
| | | "keywords": [], |
| | | "category": "Libraries", |
| | | "links": [ |