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

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

61. 微信小游戏开放域缩放问题 [ 79%]

... = Laya.stage.width; sharedCanvas.height = Laya.stage.height; _sp.graphics.drawTexture(rankTexture,0,0,rankTexture.width,rankTexture.height); Laya.stage.addChild(_sp); 开放域那边初始化的时候宽高和主域宽高是一致的。 这个写法在有些机器上是正常的,但到别的一...

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

62. Sprite-切换纹理 [ 79%]

...g) ? monkey1Res : monkey2Res; this.ape.graphics.clear(); this.ape.graphics.drawTexture(monkey, 0, 0); this.ape.size(monkey.width, monkey.height); } } new Sprite_SwitchTexture();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Texture = Laya.Texture; import Handler = Laya....

来源: Laya2.0_示例 发布时间: 20240930

63. drawTexture时,Matrix对象,a=-1,无法实现水平翻转 [ 79%]

drawTexture时,Matrix对象,a=-1,无法实现水平翻转 g.drawTexture(texture,100, 100, texture.width, texture.height, new laya.maths.Matrix(-1)); 为何无法实现水平翻转? 绘制的图片直接看不见了,如果不设置matrix.a = -1就不会出现。 2017-02-21 添加评论 免...

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

64. 畫環形倒計時,一個關於Graphics的問題 [ 78%]

...anvas不会? Graphics alpha setAlpha setFilters 等设置无效 graphics drawTexture怎么围绕纹理锚点旋转? graphics 绘制线条粗细不一样 用graphics画线时有严重锯齿 graphics的setAlpha在pc端正常使用,到layaNative就报错 graphics画出来的图形如何实现颜...

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

65. FontClip问题 [ 78%]

...inue ;   texture=this.sources[index];   if (isHorizontal)this.graphics.drawTexture(texture,dX+i *(texture.sourceWidth+this.spaceX),0,texture.sourceWidth,texture.sourceHeight);   else this.graphics.drawTexture(texture,0+dX,i *(texture.sourceHeight+this.spaceY),texture.sourceWidth,texture.source...

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

66. 图片已加载,却无法显示图片, [ 78%]

...法显示图片, 使用loadIMage可以显示图片,但使用graphics.drawTexture()却无法显示图片(图片已经预加载了),求解,是最新的layaair引擎不支持graphics.drawTexture()的方法了? 2017-01-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...

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

67. 使用graphsics.drawTexture画出来的图片与使用button创建同样宽高图形竟然不重合?? [ 77%]

使用graphsics.drawTexture画出来的图片与使用button创建同样宽高图形竟然不重合?? 我使用一个Button创建的按钮,和使用 this.sprite_show = new Laya.Sprite(); this.sprite_show.graphics.drawTexture(Laya.loader.getRes(this.resStr), 0, 0, this.width, this.height); 画...

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

68. 循环添加一组按钮事件无法正常使用 [ 77%]

...gHole"+[eggLoc[i][0]+eggLoc[i][1]);                 b.graphics.drawTexture(Laya.loader.getRes(Res),tx-45,ty-45);                 b.size(92,96);                 b.name = "egg"+i;                 Laya.stage.addChild(b);                 b.on(E...

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

69. LayaAir 2.0 微信排行榜 离屏画布不能直接附加到组件纹理上 [ 77%]

...上 A:let texture = new Laya.Texture(sharedCanvas); backImage.graphics.drawTexture(texture)   B:backImage.texture = texture     1.7版本可以直接把共享画布赋值给组件纹理,2.0不行(A,B两种方法) 报如下错误:   value._addReference is not a function   请问...

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

70. graphic能不能绘制圆形边框 [ 77%]

...和放大2倍的情况下,会有绘制效率上的差别吗? Graphic.drawTextures,第二个参数 pos:Array — 绘制次数和坐标,怎么写啊, 如何不用遮罩显示圆形微信头像,不用是因为遮罩在微信小游戏中失效 怎么检测点是否在 graphics所绘制的区...

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