大约有 865 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0057 秒)
Laya_社区(573) Laya3.0_api(100) Laya2.0_api(69) laya_api(68) Laya2.0_文档(20) Laya3.0_文档(18) Laya2.0_示例(9) Laya_示例(8)
...; this.icon = new Sprite(); this.addChild(this.icon); } this.icon.graphics.clear(); switch (type) { case Item.ITEM_TYPE_STAR: this.icon.graphics.drawTexture(this.starTexture, 0, 0, 32, 32); break; case Item.ITEM_TYPE_SPEED: this.icon.graphics.drawTexture(this.speedTexture, 0, 0, 40, 53); break; case...
来源: Laya_社区 发布时间: 20160803
...本也有这个BUG,修复如下: laya.d3.js -> SimpleSingletonList.Clear -> for (var i = 0, n = this.length; i < n; i++) 引擎代码 i没有赋初值,导致 i<n永远为false. 2020-03-21 0 0 分享 微博 QZONE 微信 沃德提安呐·郝舒艾 赞同来自: 引擎开发成员水...
来源: Laya_社区 发布时间: 20190618
...(如果之前有其他绘制,则会被清除掉)。等同于graphics.clear();graphics.drawTexture()Sprite timer : Timer时间控制器,默认为Laya.timer。Node transform : Matrix 对象的矩阵信息。通过设置矩阵可以实现节点旋转,缩放,位移效果。 矩阵更多信...
来源: laya_api 发布时间: 20170929
...里是把字节数组的数据通过socket发送给服务器。 this.byte.clear();//清除掉数据;方便下次读写; } private receiveHandler(msg: any = null): void { ///接收到数据触发函数 // this.socket.send("!!!!!!!!!!!!!!!!!!!!!!!!!!"); } private closeHandler(e: any = null): void { ...
来源: Laya_社区 发布时间: 20171129
...oader.load(value.url, ls.Handler.create(this, function () { _this.graphics.clear() var texture = window.Laya.loader.getRes(value.url) _this.graphics.drawTexture(texture) _this.scaleX = _this.set_width / texture.sourceWidth _this.pivotX = _this.row_data.property.x_m * texture.sourceWidth _this.pivotY...
来源: Laya_社区 发布时间: 20180530
...据", 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
...hildAt addChildren addComponent addComponentInstance bubbleEvent callLater clear clearTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents hasHideFlag hasListener isAncestorOf off offAll offAllCaller on onAfterDeser...
来源: Laya3.0_api 发布时间: 20231115
...如果之前有其他绘制,则会被清除掉)。 等同于graphics.clear();graphics.drawImage(),但性能更高 还可以赋值一个图片地址,则会自动加载图片,然后显示 Sprite transform : Matrix 对象的矩阵信息。通过设置矩阵可以实现节点旋转,缩放...
来源: Laya2.0_api 发布时间: 20190513
.../ if(pixelCount / _initPixelCount < 0.3) { trace("remove"); _htmlCanvas.clear(); _htmlCanvas.destroy(); _tex.destroy(); _colorSpr.off(Event.MOUSE_MOVE, this, __moveHandler); } } private function getPixel(tex:Texture):int { var pixelCount:int = 0; /************getPixels内存泄漏*************/ v...
来源: Laya_社区 发布时间: 20180302
...面的移除方式 timeLine.pause();//暂停timeLine动画,将timer进行clear timeLine.destroy();//将timeLine的数据清null trace(timeLine.hasOwnProperty("destroy"));//判断timeLine是否调用了destroy方法 timeLine=null;//将timeLine从显示列表清空 2016-12-15 0 5 分享 微博 QZONE...
来源: Laya_社区 发布时间: 20161215