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

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

131. laya的drawToTexture太坑 [ 64%]

...+ view.x, -bounds.y + view.y) as laya.resource.Texture; shadow.graphics.drawTexture(texture, bounds.x, bounds.y, bounds.width, bounds.height, null, 0.3); shadow.pos(view.x, view.y); view.parent.addChild(shadow); 2020-03-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...

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

132. laya 好像不能加载网络路径图片 [ 64%]

... Uncaught TypeError: tex.once is not a function     at Graphics.__proto.drawTexture (laya.core.js:1577)     at onloaded (laya.core.js:1864)     at Graphics.__proto.loadImage (laya.core.js:1860)     at Function.Animation.createFrames (laya.core.js:17617)     at Animation.__proto.loadImages ...

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

133. 在 move 的时候绘制线,但每次只存在一条 [ 64%]

...是否在 graphics所绘制的区域内 如何获取Sprite上用graphics.drawTexture绘制的texture? 小游戏开放数据域下使用Laya.List绘制了排行榜,但是触摸没有滚动响应 使用滤镜、遮罩、或者绘制频率很高的时候回出现黑屏闪烁 问题状态 最新活...

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

134. 这方法加载不出来图片 Mac电脑 [ 64%]

...("res/RunGameImg/floor.png"); var ape: Sprite = new Sprite(); ape.graphics.drawTexture(t, 0, 0); this.addChild(ape); ape.pos(20, 220); 2017-05-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 JDL1807996924 赞同...

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

135. BlurFilter的strength属性设置到5以上就没效果了 [ 64%]

...ew Texture(htmlC);    var sp2:Sprite = new Sprite();    sp2.graphics.drawTexture(_texture,0,0,1334,750);    var blurFilter:BlurFilter = new BlurFilter();    blurFilter.strength = 4;    sp2.filters = [blurFilter];    return sp2;   } 我按照上面这样生成_self的模糊图片...

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

136. image.drawToCanvas方法获取的一直是空的png [ 64%]

...e:Texture=new Texture(htmlCanvas); var sp:Sprite=new Sprite(); sp.graphics.drawTexture(texture,0,0,100,100); Laya.stage.addChild(sp); sp.x=200; } } } 2017-07-05 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 Funkyfun 相关问题 两个...

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

137. 图集打包后使用Texture不显示啊 [ 63%]

...aya.loader.getRes("start/sg.png"); var sp = new Laya.Sprite(); sp.graphics.drawTexture(texture,300,300); Laya.stage.addChild(sp); var ani: Laya.Animation = new Laya.Animation(); ani.loadAtlas("res/start.json"); // 加载图集动画 ani.interval = 30; // 设置播放间隔(单位:毫秒) ani.i...

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

138. Laya无法把截屏然后转Base64. [ 63%]

... Sprite().pos(0, 200);//创建精灵并把它放倒200位置 * sp.graphics.drawTexture(texture);//把截图绘制到精灵上 * Laya.stage.addChild(sp);//把精灵显示到舞台 * * <p>也可以获取原始图片数据,分享到网上,从而实现截图效果,示例:</p> * * var...

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

139. layaAir如何实现for循环加载多张图片,并且通过事件按比例缩小 [ 63%]

...r bl:Number=texture.width/texture.height             ape.graphics.drawTexture(texture,0,0,stageWidth/4,stageWidth/4/bl);             apesCtn.addChild(ape);         } 2016-10-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...

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

140. 关于微信小游戏关系链的问题 [ 63%]

...true; console.log(rankTexture)       LayaUISample.scoreview.graphics.drawTexture(rankTexture,5,78,rankTexture.width,rankTexture.height);     }); var rankTexture=new Texture(Browser.window.sharedCanvas); 这里报错 VM13215:1 gameThirdScriptError bitmap._addReference is not a function Type...

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