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

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

591. 官方新手游戏引导示例中关于hit和unHit的使用疑问 [ 51%]

...ainer.hitArea = hitArea; guideContainer.mouseEnabled = true; hitArea.unHit.clear(); hitArea.unHit.drawCircle(step.x, step.y, step.radius, "#000000");我的理解是给父容器guideContainer(包含遮罩和圆形课交互区域)设置一个可点击区域(舞台宽高的范围)并接受鼠...

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

592. 分享:Skeleton下Event.LABLE('label')事件的使用 [ 51%]

... mLabelSprite.x = mStartX; mLabelSprite.y = mStartY; mLabelSprite.graphics.clear(); mLabelSprite.graphics.fillText(tEventData.name, 0, 0, "20px Arial", "#ff0000", "center"); Tween.to(mLabelSprite, { y:mStartY - 200 }, 1000, null,Handler.create(this,playEnd)) if(tEventData.name=="'fall'") { trace('fa...

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

593. 引擎底层报错了?simplesingletonlist:[object Object] [ 51%]

...天看了下源代码,修复了。laya.d3.js -> SimpleSingletonList.Clear -> for (var i = 0, n = this.length; i < n; i++),引擎代码 i没有赋初值,导致 i<n永远为false. 峯 • 2020-01-09 16:49 好吧,我再留意下,我iPhone7p上是没出现过,iPhoneX上出现过

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

594. 微信小游戏开放数据域按钮点击位置偏移 [ 51%]

...th; sharedCanvas.height = layout.height; //先清空绘制 layout.graphics.clear(false); //设置大小 var canvas = new Laya.Texture(sharedCanvas); canvas.bitmap.alwaysChange = true;//小游戏使用,非常费,每帧刷新 layout.graphics.drawTexture(canvas); } 2018-08-10 0 0 分享 微博 QZON...

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

595. Laya.LocalStorage.getJSON空对象在微信小游戏中被处理为空字符串 [ 51%]

.../清除本地存储 调试时取消下面一行的注释 Laya.LocalStorage.clear(); //获取当前武器配置 var equipDataArray = Laya.LocalStorage.getJSON('equipDataArray'); console.log('equipDataArray ', equipDataArray, ' |'); if (equipDataArray === null) { equipDataArray = [ { icon: 'img/weapon...

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

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

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

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

597. TiledMap中对象排序问题 [ 51%]

...颜色问题 IDE1.7.8 json图集加载问题 关于removechild、destory、clear的问题 ios原生回调问题 问题状态 最新活动: 2018-06-03 15:44 浏览: 993 关注: 3 人 郭sir • 2018-06-04 10:29 人物的容器GridSprite是添加到对象层的,树也是对象层,只不过是在...

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

598. 同一个Graphics里面绘制超过20000个矢量rect的情况下,Uncaught Error: IBQuadrangle count(之前发起的问题不知道为什么找不到) [ 51%]

...; var b:Sprite = new Sprite(); b.graphics.drawTexture(texture); a.graphics.clear(true); a.destroy(); a = b; } a.graphics.drawRect(10*i, 10*j, 10, 10, "#ff0000"); count++; } } 2018-11-13 添加评论 悬赏 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...

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

599. iOS环境浏览器使用mask黑屏 [ 50%]

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

600. 在线急等,发现你们这个编译器一个bug,不能实现负负得正,昨天明明解决了,过了一会又不行了,怎么回事 [ 50%]

...00) { this.ball.x = 286; this.ball.y = 1140; // 清楚定时器 Laya.timer.clear(this, this.moveDownBall); } };   2017-11-08 0 0 分享 微博 QZONE 微信 ymsdandan 赞同来自: 代码的问题,你得自己调试才行,也可以发个demo过来 2017-11-08 0 0 分享 微博 QZONE 微信 l13273...

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