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

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

91. 无法清除指定定时器 [ 75%]

...一个定时器: Laya.timer.loop(1000,this,this.fan); 当执行 Laya.timer.clear(this,this.fan);时, 控制台还是在执行 fan 函数里的代码 2018-05-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 w11143...

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

92. Sprite loadImage 的时候出现多张图片同时显示 [ 74%]

...Sprite loadImage 的时候出现多张图片同时显示 this.img.graphics.clear(); var imgUrl = (this.flag = !this.flag)? this.imgUrl1 :this.imgUrl2; this.img.loadImage(imgUrl,100,50); 简单的点击sprite切换图片,结果会出现两张图片同时显示的情况 附件 : --> 2018-04-04 添...

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

93. loadingView 的 tips提示问题 [ 74%]

..._dt() {         var g = this.tips._graphics;         g.clear();         g.fillText(this._tips[this.prei], -26, 0, this.fontstr, this.fc, "center");         g.fillText("(" + this.p + "%)", 1 / 2 * this._len[this.prei] - 26, 0, this.fontstr, this....

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

94. 混合使用3D · LayaAir3.0文档 · LAYABOX [ 74%]

...-3) 摄像机正对LayaMonkey,同时把摄像机的 Render 组件中的Clear Flag定义为“SolidColor”,并且Clear Color定义为“#000000”。 然后如图2-4所示,改摄像机为正交投影,并调整好摄像机的显示比例。 (图2-4) 2.3 设置摄像机的目标纹理 ...

来源: Laya3.0_文档 发布时间: 20231129

95. Tween被覆盖了 [ 74%]

...制导致的错误。其他地方之前用了Tween,留了引用,然后clear的时候,其实clear的是当前的tween 2018-04-11 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 fengjingmeng Tink 相关问题 缓动Tween能用在3D物...

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

96. 如何清除graphics绘制的矢量图 [ 74%]

...loop(3000, this, function () {                 sp.graphics.clear();                 if (count1 == 0) {                     sp.graphics.drawLines(0, 0, path, "#0eff00", 5);                 } else if (count1 == 1) {          ...

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

97. 清除矢量图的时候 线条不见了 精灵还在怎么处理 [ 74%]

...清除矢量图的时候 线条不见了 精灵还在怎么处理 graphics.clear()这个清楚掉了线条 而我在Stat.show();上看到的Sprite并没有被清除掉,怎么解决 这个优化问题   2018-03-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...

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

98. 【简单跑酷--JS版】---Lv.3 添加地板 [ 74%]

...es("res/floor.png"); this.bg = new laya.display.Sprite(); this.bg.graphics.clear(); //将当前的坐标向上移动32 方便后面处理人物的位置 this.bg.y = -32; this.addChild(this.bg); } this.bg.graphics.drawTexture(this.bgTexture, 0, 0, 960, 96); //创建一个帧循环处理函数 Laya.ti...

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

99. Sprite-切换纹理 [ 73%]

...reUrl = (flag = !flag) ? texture1 : texture2; // 更换纹理 ape.graphics.clear(); var texture = Laya.loader.getRes(textureUrl); ape.graphics.drawTexture(texture, 0, 0); // 设置交互区域 ape.size(texture.width, texture.height); } })();module laya { import Sprite = Laya.Sprite; import Stage = L...

来源: Laya_示例 发布时间: 20240930

100. Laya.Tween.to或者Laya.Tween.from注意事项 [ 73%]

...打印,最终发现,我习惯性写了var a = Laya.Tween.to();调用a.clear()方法来清除动画;  然而官方在Tween结束的时候会默认把这个对象回收到对象池。那个dialog开启的弹窗效果就是tween动画,如果恰好从对象池里拿到的对象就是a。我又调...

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