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

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

1671. 如何为list内部的button添加事件 [ 53%]

如何为list内部的button添加事件 2017-01-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞同来自: 你可以通过list.getItem(xxx).getChildByName(),通过button的name属性得到butto...

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

1672. 使用WebGL后,图片加载出错,不使用可以正常加载 [ 53%]

...错如下:  Uncaught SecurityError: Failed to execute 'texSubImage2D' on 'WebGLRenderingContext': The cross-origin image at http://127.0.0.1/laya/studyLay ... y.png may not be loaded.   对应的js错误行代码: (xoffset-1 >=0)&& (gl.texSubImage2D(0x0DE1,0,xoffset-1,yoffset,0x1908...

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

1673. clip里的WeakObject.I缓存的数据有问题 [ 53%]

...用里还存在! 2017-11-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_XS 赞同来自: 如果你的clip的图片大小是小于512x512的,这个你可以不用清理,小于512的图片在使用后...

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

1674. ProgressBar 代码问题 [ 53%]

...现popup并且模拟进度条加载 按钮代码: this.testLoadingBar_anim.on(Event.CLICK,this,()=>{     var loading : Onloading = new Onloading();     loading.popup(true);     Laya.timer.loop(100, this, loading.changeValue); }); 进度条代码: import Handler = Laya.Handler; export class ...

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

1675. 关于Graphics绘制多次后使用它仍然是多个drawcall [ 53%]

...ex = 0; var sp: Sprite = new Sprite; stage.addChild(sp); setInterval(function () { sp.graphics = arr[index++] if (index >= arr.length) { index = 0; } }, 1000); 这种方式按照我的理解应该每次切换一个Graphics,但一个Graphics绘制了N次,实际drawcall是N次,而且是在切...

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

1676. 请问在2.0版本的js中,如何获取mouse_move的鼠标坐标 [ 53%]

请问在2.0版本的js中,如何获取mouse_move的鼠标坐标 img.on(Laya.Event.MOUSE_MOVE,this,this.onmousemove); apesCtn.addChild(img); ........ onmousemove(e) { //console.log("e="+JSON.stringify(e)); for (var property in e) { console.log(property+"="+e[property]); } console.log("===========...

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

1677. 预设怎么在代码中使用 [ 53%]

...一个新对象呀 2018-08-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 4 个回复 信仰 赞同来自: crstudio 、金木炎 你们官方的文档写的真垃圾?还藏着掖着 2019-10-03 2 1 分享 微博 QZONE 微...

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

1678. startDrag的使用问题 [ 53%]

...加移动距离) 2018-04-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 w1114367261 赞同来自:     /**          * 开始拖动此对象。          * @param area                ...

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

1679. 在Canvas情况下使用cache as bitmap的时候会使UI变得模糊 [ 53%]

...的。 附件 : --> 2016-10-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞同来自: 刚确认了下   这个之前有开发者反馈过,我们已经做过优化处理了,你现在是最新...

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

1680. android旋转屏幕 半边黑屏 [ 53%]

...r = "#ffeff0"; //设置横竖屏 // Laya.stage.optimizeScrollRect = true; Font.defaultFont = "宋体"; Laya.stage.alignV = "top"; Laya.stage.alignH = "left"; Laya.stage.screenMode = "vertical"; Laya.stage.scaleMode = Stage.SCALE_FULL; spr = new Sprite var te:Text = new Text(); te.fontSize = 50; te.t...

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