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

大约有 315 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0042 秒)

161. 资源加载清除问题 [ 65%]

...个Sprite  graphics.drawTexture(e); 在加载成功方法里面写Loader.clearRes(mapBit, true); 会立刻清掉了纹理,Sprite上面也没有了。 如果在加载成功后加一个延时1秒,调用Loader.clearRes就清理不掉了? 2016-12-30 添加评论 免费帖 --> 分享 微博 QZONE ...

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

162. 在加载多个资源的时候,加载进度异常 [ 65%]

...,默认会设会true. 然后在runWith方法中,once为true的话,就调用clear方法,清理此Handle,之后的多次回调都不会执行了.   我之前也是同样的问题,今天抽空看了下源码解决了,又正好发现这个帖子,忍不住回复下^^ 2018-12-18 0 0 分享 微博 QZONE ...

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

163. 分享:改变图片皮肤,保持图片原样宽高显示 [ 64%]

...Click():void { var texture1:Texture=Loader.getRes("logo.png"); sp.graphics.clear(); sp.graphics.drawTexture(texture1); } } } 2017-06-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 Monica - 知识达人 赞同...

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

164. socket大型项目回调 [ 64%]

...ArrayBuffer){ var byte:Laya.Byte = new Laya.Byte(event); this.socket.input.clear(); this.processPackage(this._package.decode(byte)); } } private sendMessage(reqId, route, msg) { var byte:Laya.Byte; // var msgbuffer = Protocol.strencode(JSON.stringify(msg)); // console.log("msgbuffer",msgbuffer); var...

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

165. 关于fillText问题 [ 64%]

...尝试下在每次绘制钱清除下sptite的绘制内容 sprite.graphcis.clear(); 2018-04-25 0 7 分享 微博 QZONE 微信 yung 赞同来自: 绘制一个文字,我们需要开辟一个2048*2048的图作为载体,把文字绘制到上面,然后把图片上传到显卡 这个图会用来绘...

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

166. iOS环境浏览器使用mask黑屏 [ 64%]

...private _sp = new Laya.Sprite(); private _testMask() { this._sp.graphics.clear(); this._sp.graphics.drawCircle(100, 100, 50, '#ffffff'); Laya.timer.once(3000, this, () => { this.img.mask = this._sp; }) }之后编译项目 2. 使用iphone手机的safari扫码功能运行项目 3秒中之后必现...

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

167. laya 2.1.1.1 object has in SimpleSingletonList [ 64%]

...本也有这个BUG,修复如下: laya.d3.js -> SimpleSingletonList.Clear -> for (var i = 0, n = this.length; i < n; i++) 引擎代码 i没有赋初值,导致 i<n永远为false. 2020-03-21 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先...

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

168. Laya 绑定显示内容到骨骼动画 [ 64%]

....offestX+position.y; } }  destroy(destroyChild?:boolean):void{ this.timer.clear(this,this.__updateBinds); this.__bindList.length=0; this.__bindList=null; super.destroy(destroyChild); } }   2. 可绑定到骨骼的内容 /** * 可绑定到骨骼的内容(实现者必须是Laya.Sprite的子类)...

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

169. 可能有个昵称叫做“syy”的一只掉进粪坑里的猪会在下面乱叫 [ 64%]

...下,两个相同颜色图片的边缘有可能会出现黑线 Laya.Timer.clear 的源码可能有个问题。 Byte 类中的报错信息的可能原因? app构建IOS包 进入游戏提示加载游戏失败,可能由于你的网络不稳定,请退出重进 问题状态 最新活动: 2018-12-0...

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

170. 关于创建Sprite获取大小 [ 64%]

...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