大约有 75 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0058 秒)
...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
...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
...到,并且当我想变大变小点击框时,只需要改变rectangle2.setTo(新的长的一半,新的宽的一半,新的高,新的宽);就能一直保持点击不偏移,目前无论改变sp2的位置,或是rectangle2的大小,setBounds后都出现了严重的偏移? daohu • 2...
来源: Laya_社区 发布时间: 20161211
...撞判断 问题三:image.setBounds(rectangle)之后,当我rectangle.setTo(x,x,x,x)是不是也动态影响了image的碰撞区域? 问题四:这个rectangle需要不需要添加到显示列表才能实现碰撞? 问题五:有没有更简便的碰撞方式?不满足于两个image碰...
来源: Laya_社区 发布时间: 20161202
...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
...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
...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
...nt.scrollRect = Rectangle.create()); content._style.scrollRect.setTo(rectX, rectY, width, height); content.scrollRect = content.scrollRect; } 附件 : --> Bug文本.zip 2021-11-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: ...
来源: Laya_社区 发布时间: 20211108
... type : String 事件类型。EventPublic Methods MethodDefined By setTo(type:String, currentTarget:Sprite, target:Sprite):Event 设置事件数据。 Event stopPropagation():void 阻止对事件流中当前节点的后续节点中的所有事件侦听器进行处理。此方法不会影...
来源: Laya2.0_api 发布时间: 20190513
... type : String 事件类型。EventPublic Methods MethodDefined By setTo(type:String, currentTarget:Sprite, target:Sprite):Event 设置事件数据。 Event stopPropagation():void 阻止对事件流中当前节点的后续节点中的所有事件侦听器进行处理。此方法不会影...
来源: laya_api 发布时间: 20170929