大约有 321 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0041 秒)
Laya_社区(204) Laya3.0_api(66) Laya2.0_文档(13) Laya3.0_文档(13) Laya2.0_示例(9) Laya_示例(8) laya_api(4) Laya2.0_api(4)
...r = 642; var h: number = 12; var g: Laya.Graphics = this._mask.graphics; g.clear(); if (w == 0 || h == 0) return; var points: any[] = []; points.push(0, h); points.push(0, 0); points.push(this._index, 0); points.push(this._index, h); // points.push(0, h); g.drawPoly(0, 0, points, "#FFFFFF"); this...
来源: Laya_社区 发布时间: 20221117
...移除所有事件监听 this.offAll(); //移除所有timer //this.timer.clearAll(this); } 附件 : --> 2022-02-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 之肖 赞同来自: Laya_Yan 因为this.timer指...
来源: Laya_社区 发布时间: 20220224
...里是把字节数组的数据通过socket发送给服务器。 this.byte.clear();//清除掉数据;方便下次读写; } private receiveHandler(msg: any = null): void { ///接收到数据触发函数 // this.socket.send("!!!!!!!!!!!!!!!!!!!!!!!!!!"); } private closeHandler(e: any = null): void { ...
来源: Laya_社区 发布时间: 20171129
...nLoop); } private function onLoop():void { delay-=50; sp.x+=20; Laya.timer.clear(this,onLoop); Laya.timer.loop(delay,this,onLoop); } 2017-06-26 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 Funkyfun 相关问题 两个对象new了一个...
来源: Laya_社区 发布时间: 20170626
...a1找回来; var onload = function (imageData) { clear(); if (imageData) { var image = imageData; if (type !== "nativeimage") { image = new Texture2D(); ...
来源: Laya_社区 发布时间: 20210629
...element.childElementCount) this.element.firstChild.remove(); } ILaya.timer.clear(this, this.render); } 2、关于Image所说的内存泄漏的问题,你们上面的描述更多的可以认为这个属于项目本身的处理问题。针对一个Image实例对象,频繁的切换skin,看更换...
来源: Laya_社区 发布时间: 20240228
...渲染吗? Image元件读不了资料流 关于removechild、destory、clear的问题 问题状态 最新活动: 2017-11-24 10:37 浏览: 965 关注: 2 人
来源: Laya_社区 发布时间: 20171124
... } private function switchImg(e:*=null):void { //清空图片 img.graphics.clear(); //获得要切换的图片资源路径 var imgUrl:String = (flag = !flag)? monkey1:monkey2; //加载显示图片,坐标位于100,50 img.loadImage(imgUrl); } } } ``` 运行代码效果如动图2-2所示: ![动图2...
来源: Laya2.0_文档 发布时间: 20210715
...据", msg); } // 清除输入缓存,避免残留数据 this.socket.input.clear(); } /** 连接关闭回调 */ private onSocketClose(e: any): void { console.log("WebSocket 连接已关闭", e); } /** 连接错误回调 */ private onConnectError(e: any): void { console.error("WebSocket 连接出错...
来源: Laya3.0_文档 发布时间: 20251010
...在手动改变加载图片的大小是无效的,不过你可以通过先clear在drawTexture的方法设置下,代码如下: var sprite = new laya.display.Sprite(); sprite.loadImage("comp/bg.png",0,0,0,0,Handler.create(this,function(texture:laya.resource.Texture){ sprite.graphics...
来源: Laya_社区 发布时间: 20160711