大约有 592 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0041 秒)
Laya_社区(424) Laya3.0_api(61) Laya2.0_示例(32) Laya_示例(31) Laya2.0_文档(30) Laya3.0_文档(11) laya_api(2) Laya2.0_api(1)
... var _mDown:Sprite=new Sprite(); _mTop.graphics.drawRect(0,0,1,1,"#0"); 3.叠加效果 BlendMode.ADD,apk中无效 4.MouseManager.as 运行 时报错,“ touchemoves is undefined” case "touchmove": ...
来源: Laya_社区 发布时间: 20170510
...ge.addChild(this.ape); let texture = Laya.loader.getRes(apePath); this.ape.graphics.drawTexture(texture); this.ape.x = (Laya.stage.width - texture.width) / 2; this.ape.y = (Laya.stage.height - texture.height) / 2; } applayFilter() { // 创建一个模糊滤镜 const BlurFilter = Laya.BlurFilter; // ...
来源: Laya2.0_示例 发布时间: 20251209
...ge.addChild(this.ape); let texture = Laya.loader.getRes(apePath); this.ape.graphics.drawTexture(texture); this.ape.x = (Laya.stage.width - texture.width) / 2; this.ape.y = (Laya.stage.height - texture.height) / 2; } applayFilter() { // 创建一个发光滤镜 const GlowFilter = Laya.GlowFilter; let...
来源: Laya2.0_示例 发布时间: 20251209
...于逻辑贞更新间隔机制、时间和其他一些Timer相关的问题 graphics alpha 问题 问题状态 最新活动: 2017-12-15 19:50 浏览: 1093 关注: 3 人 Laya_Aaron • 2017-12-15 20:08 传一个项目DEMO,看看 Laya_Aaron • 2017-12-15 16:25 用最新的 引擎和导出工具,...
来源: Laya_社区 发布时间: 20171215
... texture:Texture=Loader.getRes('logo.png'); var sp:Sprite=new Sprite(); sp.graphics.clear();//把上次的绘制清除 sp.graphics.drawTexture(texture); Laya.stage.addChild(sp); } 2017-05-05 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人...
来源: Laya_社区 发布时间: 20170505
... { if(this.szurl!="") this.disp() this.szurl=url; if(url==null){ this.graphics.clear(); }else{ this.skin=url; } } public disp(){ this.skin=""; if(this.szurl){ Laya.loader.clearRes(this.szurl,true); //***2.0这里写法为Laya.loader.clearRes(this.szurl); } } public set url(value:string){ this.o...
来源: Laya_社区 发布时间: 20181201
...并添加到舞台 Laya.loader.load(this.monkey2,Laya.Handler.create(this,graphicsImg)); function graphicsImg(){ var img = new Laya.Sprite(); //获取图片资源,绘制到画布 img.graphics.drawTexture(Laya.loader.getRes(this.monkey2),100,50); //添加到舞台 Laya.stage.addChild(img); }求教...
来源: Laya_社区 发布时间: 20170825
...charAt(i); var _x = xAction(j); var _y = yAction(printNumber); this.sprite.graphics.fillText(element, _x, _y, fonts, this.color, "left"); if (yAction(printNumber + 1) > h) { j++; printNumber = 0; } else { printNumber++; } } } drawTextBySprite(sprite: Laya.Sprite) { sprite.addChild(this.sprite); t...
来源: Laya_社区 发布时间: 20191103
...= 0; j < this.MapColNum; j++){ var box = new laya.display.Sprite(); box.graphics.drawRect(0, 0, 30, 30, null, "#e6e4ef", 1); box.x = i * 30; box.y = j * 30; boxSp.addChild(box); } } boxSp.cacheAs = "bitmap"; this.addChild(boxSp); } boxSp.cacheAs = "bitmap"; 如果去掉这句话可以显示 是...
来源: Laya_社区 发布时间: 20161008
...Texture color参数无效 怎样获取浏览器地址传过来的GET参数 Graphic.drawTextures,第二个参数 pos:Array — 绘制次数和坐标,怎么写啊, laya 发布成微信小游戏 怎么获取从分享中进入的参数 请问下自定义时间怎么获取发送时的参数 IDE中js...
来源: Laya_社区 发布时间: 20170221