大约有 318 项符合查询结果, 库内数据总量为 30,935 项。 (搜索耗时: 0.0041 秒)
Laya_社区(202) Laya3.0_api(66) Laya2.0_文档(13) Laya3.0_文档(12) Laya2.0_示例(9) Laya_示例(8) laya_api(4) Laya2.0_api(4)
... (i = 0); //清除sp节点的所有绘图(不含子节点) sp.graphics.clear(); //在sp节点上重绘纹理 sp.graphics.drawTexture(res[i]); i++; }); }); } } 2.2 可带类型的多资源加载方式 假如,多数资源不需要带类型,有的资源又需要用类型区别,该如何使用...
来源: Laya3.0_文档 发布时间: 20240910
...代码,第一次创建就可以显示动画,然后当使用了Loader.clearRes之后再次创建就怎么都显示不了,是哪里用错了么?求指点 附件里上传了测试工程,打开后先按A键可以看到屏幕有两条鱼,然后再按空格将其彻底移除,然后再按A键...
来源: Laya_社区 发布时间: 20180424
...e(); Laya.stage.addChild(sp); //画曲线 if(x<100){ x++; } sp.graphics.clear(); sp.graphics.drawCurves(10, 58, [x, 0, 19, -100, 39, 0], "#ff0000", 3); } } new Scene(); 附件 : --> 2019-05-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...
来源: Laya_社区 发布时间: 20190520
...customRender必定执行 this.frameLoop(1, this, () => { this.graphics.clear(); this.graphics.drawLine(0, 0, 1, 0, '#000'); }); this.customRenderEnable = true; this.customRender = (context: Laya.RenderContext, x: number, y: number) => { let webGLContext = context.ctx as Laya.WebGLContext2D; }s...
来源: Laya_社区 发布时间: 20180728
...ion.hitArea = dd; dd.hit.drawRect(174, 123, 210, 230, "#000000"); dd.unHit.clear(); dd.unHit.drawRect(0, 0, 174, 123, "#000000"); }) 2018-05-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 w1114367261 赞同来...
来源: Laya_社区 发布时间: 20180507
...点击事件 Laya.stage.addChild(img); function switchImg() { img.graphics.clear(); //清除绘制 var imgUrl = (this.flag = !this.flag) ? this.img1 : this.img2; img.loadImage(imgUrl, 100, 100) } }这是官方的切换位图的示例,但是点击位图距离容器top和left100的区域,还可以...
来源: Laya_社区 发布时间: 20180502
...00,50); } private switchImg():void{ //清空绘制 this.img.graphics.clear(); //获得要切换的图片资源路径 var imgUrl:String = (this.flag = !this.flag)? this.monkey2:this.monkey1; //获取图片资源 var texture:Laya.Texture = Laya.loader.getRes(imgUrl); //绘制纹...
来源: Laya_社区 发布时间: 20180226
...他this的一个引用,导致内存泄露//complete && complete.clear(); //progress && progress.clear(); 我自己测试加上的 附件 : --> 2018-04-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个...
来源: Laya_社区 发布时间: 20180417
...颜色问题 IDE1.7.8 json图集加载问题 关于removechild、destory、clear的问题 event自定义事件的问题 关于主程序过大的问题 问题状态 最新活动: 2017-10-11 17:21 浏览: 775 关注: 3 人 Zzz18815519 • 2017-10-11 19:27 那动画播放结束的事件怎么定义? ...
来源: Laya_社区 发布时间: 20171011
...登录 发起人 oy2419498011 相关问题 Laya.timer.loop 的 Laya.timer.clear 问题 Laya.timer.loop(delay, caller, method) Laya.timer.loop() 报错 Cannot read property 'loop' of null 问题状态 最新活动: 2018-02-27 15:59 浏览: 965 关注: 2 人 oy2419498011 • 2018-02-27 16:01 定时器...
来源: Laya_社区 发布时间: 20180227