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

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

301. 打包APK运行,drag拖动出现问题;color="#0"程序直接崩溃 [ 69%]

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

302. 滤镜-模糊滤镜 [ 69%]

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

303. 滤镜-发光滤镜 [ 69%]

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

304. 关于光源的问题 [ 69%]

...于逻辑贞更新间隔机制、时间和其他一些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

305. 图片显示好奇怪 [ 69%]

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

306. 2.0下资源加载和销毁内存问题 [ 69%]

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

307. 求教 JS项目的Promise如何使用 [ 68%]

...并添加到舞台 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

308. 类似古文显示方式脚本,文字垂直显示,可以控制显示速度出现打字效果等 [ 68%]

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

309. 最新版本绘制100x100个sprite ios不能显示 [ 68%]

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

310. 如何给loadprogress传参数? [ 68%]

...Texture color参数无效 怎样获取浏览器地址传过来的GET参数 Graphic.drawTextures,第二个参数 pos:Array — 绘制次数和坐标,怎么写啊, laya 发布成微信小游戏 怎么获取从分享中进入的参数 请问下自定义时间怎么获取发送时的参数 IDE中js...

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