大约有 865 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0097 秒)
Laya_社区(573) Laya3.0_api(100) Laya2.0_api(69) laya_api(68) Laya2.0_文档(20) Laya3.0_文档(18) Laya2.0_示例(9) Laya_示例(8)
...ainer.hitArea = hitArea; guideContainer.mouseEnabled = true; hitArea.unHit.clear(); hitArea.unHit.drawCircle(step.x, step.y, step.radius, "#000000");我的理解是给父容器guideContainer(包含遮罩和圆形课交互区域)设置一个可点击区域(舞台宽高的范围)并接受鼠...
来源: Laya_社区 发布时间: 20170803
... 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
...天看了下源代码,修复了。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
...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
.../清除本地存储 调试时取消下面一行的注释 Laya.LocalStorage.clear(); //获取当前武器配置 var equipDataArray = Laya.LocalStorage.getJSON('equipDataArray'); console.log('equipDataArray ', equipDataArray, ' |'); if (equipDataArray === null) { equipDataArray = [ { icon: 'img/weapon...
来源: Laya_社区 发布时间: 20190916
...,默认会设会true. 然后在runWith方法中,once为true的话,就调用clear方法,清理此Handle,之后的多次回调都不会执行了. 我之前也是同样的问题,今天抽空看了下源码解决了,又正好发现这个帖子,忍不住回复下^^ 2018-12-18 0 0 分享 微博 QZONE ...
来源: Laya_社区 发布时间: 20180101
...颜色问题 IDE1.7.8 json图集加载问题 关于removechild、destory、clear的问题 ios原生回调问题 问题状态 最新活动: 2018-06-03 15:44 浏览: 993 关注: 3 人 郭sir • 2018-06-04 10:29 人物的容器GridSprite是添加到对象层的,树也是对象层,只不过是在...
来源: Laya_社区 发布时间: 20180601
...; 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
...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
...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