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

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

51. list item 添加事件后无法监听 [ 77%]

...tem(cell, index) {     console.log(index);     // console.log(cell.dataSource);     cell.setImg(cell.dataSource[index]);     cell.on(Laya.Event.CLICK, function() {         console.log("click")     }) }  function onSelect(index) {     console.log("当前选择的索...

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

52. laya.device.motion.Gyroscope [ 76%]

...//developer.mozilla.org/en-US/docs/Web/Guide/Events/Orientation_and_motion_data_explained。 info: RotationInfo类型参数,保存设备的旋转值。 浏览器兼容性参见:http://caniuse.com/#search=deviceorientation Public Properties PropertyDefined By  instance : Gyroscope[static] [rea...

来源: laya_api 发布时间: 20170929

53. 关于HttpRequest报错问题 [ 76%]

...essHandler); function onHttpRequestComplete(e){ }; function processHandler(data){ console.log(data); }; function errorHandler(data){ }; xmlHttp.send("http://","","post","text"); 2018-02-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...

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

54. laya.device.motion.Gyroscope [ 76%]

...//developer.mozilla.org/en-US/docs/Web/Guide/Events/Orientation_and_motion_data_explained。 info: RotationInfo类型参数,保存设备的旋转值。 浏览器兼容性参见:http://caniuse.com/#search=deviceorientation Public Properties PropertyDefined By  instance : Gyroscope[static] [rea...

来源: Laya2.0_api 发布时间: 20190513

55. 按钮失效,同UI里的一个图片超链接点击后再返回,出现按钮失效。 [ 76%]

... console.log("setting is onclicked"); });  //链接地址 function onLink(data) { // TODO Auto Generated method stub Laya.Browser.window.location.href=data; }   } //绑定父类 Laya.class(StartResource,"StartResource",StarUI);  主界面 红色是dalog 绿色是超链接按钮     点击超链...

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

56. 加载解析ByteArray问题 [ 76%]

...); loader.load("atlas/byarr.byte",Loader.BUFFER); private function loadEnd(data:*):void { if (data is ArrayBuffer) { var byts:Byte = new Byte(data); byts.pos = 0; var fr:int = byts.getByte(); var a:int = byts.getInt32(); alert(fr);//这个值正常 alert(a);//这个值不正常,后面再读取都...

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

57. Templet资源删除不掉 [ 76%]

...ure:Texture = Loader.getRes("res/Dragon.png");             // var data:ArrayBuffer = Loader.getRes("res/Dragon.sk");             factory = new Templet();             factory.on(Event.COMPLETE, this, onSkeletonDataParsed); //            factory.on(Event.ERROR, this...

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

58. native 问题实在太多了 使用自定义的动态字经常出现崩溃 [ 76%]

...术人员帮我看一下,心态真的搞崩了 #00 pc 00000000002f8f20 /data/app/com.gemclash.towerdefense.gp-nL3Za3jIt5tpqzSue73YEQ==/lib/arm64/liblayaair.so (laya::JCFreeTypeFontRender::getTextLineBitmapData(char*, laya::BitmapData*, int, laya::JCFontInfo*, int, int, double, double)+1580) [arm64...

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

59. laya.d3.webxr.core.ButtonGamepad_API3.0 [ 76%]

...XR/core/WebXRGamepad.ts:211 destroy Returns void event event(type: string, data?: any): boolean Inherited from EventDispatcher.event Defined in laya/events/EventDispatcher.ts:32 派发事件。 Parameters type: string 事件类型。 Optional data: any (可选)回调数据。注意:如果是...

来源: Laya3.0_api 发布时间: 20231115

60. Laya.HttpRequest 没有调用回调方法? [ 76%]

...hr.send("https://www.baidu.com/","","get","text"); function processHandler(data){ console.log(data); console.log("1111"); } function errorHandler(data){ console.log("2222"); } function completeHandler(e){ console.log("3333"); } 2018-08-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...

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