• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 216 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0058 秒)

51. 二次开发中:平台代码(android/ios)主动执行js脚本,在Laya1.0中生效,在Laya2.0中不生效 [ 68%]

...t default class Test  {     public static  onClick():void{         alert("123456");     }     public static onClick1():void{            } } 原生中代码:ConchJNI.RunJS("Test.onClick()"); 原生中报错:ReferenceError: Test is not defined   附件 : --> TEST.zip 2019-03-13 ...

来源: Laya_社区 发布时间: 20190313

52. [LayaAir3]支付宝小游戏使用TTF字体异常 [ 68%]

...来自:     private static applyFont(nativePath: string) {         alert("应用字体=>" + nativePath);         let fontName = my["loadFont"](nativePath) as string;         if (fontName) {             Laya.Config.defaultFont = fontName;             fgui.UIConfig.default...

来源: Laya_社区 发布时间: 20240513

53. LayaAir3D, Unity Animation动画在PC版微信的内置浏览器中不支持 [ 68%]

...位到了,BUG或兼容性改进=========== 1、手动载入.lani,用 alert 一步步定位   2、进入addClip函数,继续用 alert 逐段定位,最终定位到奔溃的位置     3、这样,动画就可以正常在PC版微信的内置浏览器里用了 这严格意义上不算LAYA的B...

来源: Laya_社区 发布时间: 20180410

54. ConchJNI.RunJS(xxxx) 这里的xxx自定义方法写在ts的哪里才能被执行 [ 68%]

...都是js调原生的方法,原生调用js就写了ConchJNI.RunJS("alert('hello world')");这么一句话,alert是js本来就有的,我想改成ConchJNI.RunJS("myAlert('hello world')"),myAlert在ts不知道要写哪里 Laya_Aaron • 2018-07-13 11:20 写在哪里都可以,...

来源: Laya_社区 发布时间: 20180713

55. 用laya开发出来的app包,如果用webview 调用一些app 是否不可以? [ 68%]

...:123}) 给加速器发消息 window.addEventListener("message",function(e){alert(e.data)}) 监听加速器发来的消息   conch:  window.postMessage({jj:123}); 给iframe发消息 window.addEventListener("message",function(e){alert(e.data)});监听iframe发来的消息 如果接口需求无法满...

来源: Laya_社区 发布时间: 20181008

56. exception info:[TypeError:undefined is not an object(evaluating'tInfo[0].attributes')] at line 764 [ 67%]

...ine 764 安卓上打包运行没问题 iphone上打包运行弹窗报以上alert,请问我该如何定位这个alert 2017-05-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 4 个回复 archerxy 赞同来自: cuixueying ...

来源: Laya_社区 发布时间: 20170523

57. 如何启用摇一摇 [ 64%]

...EventListener("devicemotion", deviceMotionHandler, false)'); __JS__('}else{alert("你的设备不支持DeviceMotion事件");}'); __JS__('function deviceMotionHandler(eventData){var acceleration = eventData.accelerationIncludingGravity'); __JS__('var curTime = new Date().getTime()'); __JS__('if ((cur...

来源: Laya_社区 发布时间: 20160110

58. sprite做的按钮点击无反应? [ 64%]

...hild(btn); Laya.stage.addChild(btn); btn.on(Event.CLICK, this, function(){ alert("点击"); }); 点击btn并未弹出alert,我也设置了btn的size,这是为什么? 2017-01-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...

来源: Laya_社区 发布时间: 20170120

59. Socket能连接到服务器,客户端发请求也能收到服务端的数据,但是服务端主动推送数据,客户端就是收不到数据? [ 63%]

...     ws = new MozWebSocket(url);         } else {             alert("您的浏览器不支持WebSocket。");             return ;         }     ws.onopen = function() {             log("open");             setConnected("已连接");             //设置发...

来源: Laya_社区 发布时间: 20170724

60. 苹果上架有问题啊 , !!!!!! [ 62%]

...this message. Guideline 4.0 - Design Your app includes an update button or alerts the user to update the app, but the update button or alert does not link directly to the app’s page on the App Store. Please see attached screenshots for details. Next Steps To resolve this issue, please ensure that ...

来源: Laya_社区 发布时间: 20171221