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

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

61. 在开启webgl模式下,每次运行texture类的getPixels方法内存都会增加 [ 51%]

...ound.height / 2)) this.cacheTexture = new Laya.Texture() this.cacheTexture.setTo(this.cacheCanvas) } getPixels(){ this.cacheTexture.getPixels(0,0,120,120) } } } Laya.init(400, 640, Laya.WebGL) var app=new Main.MaskDemo() Laya.timer.frameOnce(5, app, ()=>{ app.init() Laya.timer.frameLoop(2, app, a...

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

62. 事件管理 · LayaAir3.4 · 引擎文档 · LAYABOX [ 51%]

...Handler.runWith(1); //可以自行调用runWith(),并传入参数1 ​ 6,setTo(caller: any, method: Function | null, args: any[] | null, once = false): Handler 设置此对象的指定属性值。 onAwake(): void { console.log("Game Start"); this.Tab.selectHandler = Laya.Handler.create(this,(index...

来源: Laya3.0_文档 发布时间: 20251010

63. setBounds()后无法碰撞 [ 50%]

...到,并且当我想变大变小点击框时,只需要改变rectangle2.setTo(新的长的一半,新的宽的一半,新的高,新的宽);就能一直保持点击不偏移,目前无论改变sp2的位置,或是rectangle2的大小,setBounds后都出现了严重的偏移? daohu • 2...

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

64. 关于intersects碰撞的疑问 [ 50%]

...撞判断 问题三:image.setBounds(rectangle)之后,当我rectangle.setTo(x,x,x,x)是不是也动态影响了image的碰撞区域? 问题四:这个rectangle需要不需要添加到显示列表才能实现碰撞? 问题五:有没有更简便的碰撞方式?不满足于两个image碰...

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

65. 【解决】富文本html下划线换行bug [ 48%]

...ords.width,lineY,color,1); } } var hitRec=HTMLHitRect.create(); hitRec.rec.setTo(words[0].x,lastWords.y,lastWords.x+lastWords.width-words[0].x,lastWords.height); hitRec.href=this.href; recList.push(hitRec); } } } }if(words[0].y != words[words.length-1].y) 此处的修改。目前这个代码只支...

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

66. 关于微信小游戏渲染子域图的问题 [ 47%]

...ttp://127.0.0.1:10656/game/js/bundle.js:15188:19)     at Texture.__proto.setTo (http://127.0.0.1:10656/game/js/bundle.js:15065:14)     at new Texture (http://127.0.0.1:10656/game/js/bundle.js:15001:8)     at Main.<anonymous> (http://127.0.0.1:10656/game/js/bundle.js:1196:16)     at Tim...

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

67. 官方提供的关系链代码执行报错,是不是wx的sharedCanvas不是Laya的canvas导致的问题 [ 47%]

...1; Texture.__super.call(this); if (bitmap){ bitmap._addReference(); } this.setTo(bitmap,uv); } 2018-05-04 5 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 4 个回复 Prajna 赞同来自: 自己解决了 2018-05-04 0 5 分享 ...

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

68. Panel初始化BUG [ 46%]

...nt.scrollRect = Rectangle.create());         content._style.scrollRect.setTo(rectX, rectY, width, height);         content.scrollRect = content.scrollRect;     } 附件 : --> Bug文本.zip 2021-11-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: ...

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

69. laya.events.Event [ 40%]

...  type : String 事件类型。EventPublic Methods  MethodDefined By  setTo(type:String, currentTarget:Sprite, target:Sprite):Event 设置事件数据。 Event  stopPropagation():void 阻止对事件流中当前节点的后续节点中的所有事件侦听器进行处理。此方法不会影...

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

70. laya.events.Event [ 39%]

...  type : String 事件类型。EventPublic Methods  MethodDefined By  setTo(type:String, currentTarget:Sprite, target:Sprite):Event 设置事件数据。 Event  stopPropagation():void 阻止对事件流中当前节点的后续节点中的所有事件侦听器进行处理。此方法不会影...

来源: laya_api 发布时间: 20170929