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

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

1. webgl 模式下 用graphics.drawTexture 平铺图片 图片显示是什么原因 [ 100%]

webgl 模式下 用graphics.drawTexture 平铺图片 图片显示是什么原因 this.texture1 = Laya.loader.getRes('res/images/bg1.png'); this.texture2 = Laya.loader.getRes('res/images/bg2.png'); var repeatX = 8 ; var repeatCount = Math.ceil(stageW / repeatX); for(let i = 0; i < repeatCount ...

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

2. graphics.drawTexture 有问题,紧急! [ 98%]

graphics.drawTexture 有问题,紧急! 我想实现一个矢量画图功能,但是单纯的使用graphics.drawLine会发现DrawCall的指数会断增多,为了优化相处了一个方案。   没画完一条线都将此画布drawToCanvas转成一个Texture,再clear这个画布,然...

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

3. graphics.drawTexture黒块问题 [ 98%]

graphics.drawTexture黒块问题 自己用Laya.Sprite.graphics.drawTexture实现的大地图渲染, 开始显示正常,后面地图块(256x256)加载多了就出现黒块闪烁,有大神知道什么原因吗?   附件 : --> 2017-11-06 添加评论 免费帖 --> 分享 微博 QZONE 微...

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

4. 如何获取Sprite上用graphics.drawTexture绘制的texture? [ 97%]

如何获取Sprite上用graphics.drawTexture绘制的texture? 如何获取Sprite上用graphics.drawTexture绘制的texture? 如定义为faceImage的Sprite,我用faceImage.graphics.drawTexture绘制图片哦,也有正常显示了,但我通过faceImage.texture却是null。我需要拷贝该...

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

5. 请问graphics.drawTexture(texture)中如何增加一个matrix,只显示图中的一个圆形区域 [ 97%]

请问graphics.drawTexture(texture)中如何增加一个matrix,只显示图中的一个圆形区域 请问graphics.drawTexture(texture)中如何增加一个matrix,只显示图中的一个圆形区域 我可以另外建一个圆形比如 var mapMask = new Laya.Sprite(); mapMask.size(100,100); ma...

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

6. 直接new sprite 跟graphics.drawTexture 有什么区别 [ 97%]

直接new sprite 跟graphics.drawTexture 有什么区别 var downScoreTexture = Laya.loader.getRes("img/game/kc/score.png"); var _downScore = new Sprite(); _downScore.pos(150,130); _downScore.graphics.drawTexture(downScoreTexture); touPane.addChild(_downScore); 这个东西,跟 直接new sprite ...

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

7. drawTexture 画出来的数据会有以前的数据 [ 94%]

drawTexture 画出来的数据会有以前的数据 private var iconSpr:Sprite; private var htmlCanvas:HTMLCanvas; private var texture:Texture; private var xNum:int = 0; private var yNum:int = 0; private var img:Image; public function TestView() { img = new Image("comp/lhjicon_5.png"); img.x = 640;...

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

8. 分享:Graphics下cmds命令流的使用! [ 94%]

...纹理 var box:Sprite=new Sprite(); Laya.stage.addChild(box); box.graphics.drawTexture(texture1,50,50,0,0,new Matrix(),0.5); box.graphics.drawTexture(texture2,200,50,0,0,new Matrix(),0.5); box.graphics.drawTexture(texture3,350,50,0,0,new Matrix(),0.5); box.graphics.drawTexture(texture4,500,50,0,0,ne...

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

9. Sp.graphics.drawTexture()中的color参数使用的时候,会概率性导致整个场景中的节点颜色改变成我们使用过的颜色。 [ 92%]

Sp.graphics.drawTexture()中的color参数使用的时候,会概率性导致整个场景中的节点颜色改变成我们使用过的颜色。 没有进行其他操作   Sp.graphics.drawTexture(_PreloadUrl._list.texture.brushworkCommon.texture, pointArr[index].x -  this.DrawControl.radiu...

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

10. drawToTexture 绘制函数工作呢 [ 91%]

...ct_bottom.drawToTexture(100, 100, 0, 0);         top_rect.graphics.drawTexture(t, 0, 0, 200, 100);       附件 : --> 2019-07-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 宁远 赞同来自: 找...

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