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

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

81. graphics绘制的图形能作为mask来用吗 [ 75%]

...e.js文件,发现比1.7.8多了这句话,请问有什么用吗 Graphic.drawTextures,第二个参数 pos:Array — 绘制次数和坐标,怎么写啊, 问题状态 最新活动: 2017-03-21 19:22 浏览: 1304 关注: 3 人

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

82. 2.0里Texture方法有改变吗? [ 75%]

...00, 0, 0); var _texture:Texture = new Texture(htmlCanvas); txt_ct.graphics.drawTexture(_texture, -2, -2, 575, 1500); p6_work.addChild(txt_ct);为什么1.0这样写没问题,2.0就会报错?RenderTexture: unkonw depth format.   2018-10-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

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

83. hBox使用问题 [ 75%]

...500,Ease.sineOut); var bl:Number=texture.width/texture.height ape.graphics.drawTexture(texture,0,0,stageWidth/4,stageWidth/4/bl); apesCtn.addChild(ape); } } 这种方法HBox布局不管用,是不是不能用graphics.drawTexture方法,如果用addChild方法加载Loader.getRes(picAy[i])这个数...

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

84. Laya.loader.load 教程代码出错 [ 75%]

...re:Texture = Laya.loader.getRes(url);             img.graphics.drawTexture(txture);             img.size(txture.width,txture.height);         }            } }    运行后在 LayaSample.max.js 692行提示异常if (!tex.loaded){ tex.once("loaded",this,thi...

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

85. graphics 问题 [ 74%]

...微博 QZONE 微信 cuixueying 赞同来自: 你把drawImage改成graphics.drawTexture吧 1、drawImage不确定是什么时候加载完成 2、transform的设置必须在绘图命令之前 所以,会出现save后,显示对象的transform设置无效,改成texture就OK了! 2017-06-12 0 0 分...

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

86. 透明区域点击问题 [ 74%]

透明区域点击问题 var sprite0 = new Sprite(); sprite0.graphics.drawTexture(Loader.getRes("comp/image.png")); sprite0.pos(10, 10); sprite0.mouseEnabled = true; sprite0.name = 'sprite0'; Laya.stage.addChild(sprite0); sprite0.on(Event.CLICK, this, handler_click); 怎么让sp透明区域不可...

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

87. 【简单跑酷--JS版】---Lv.6 终篇 [ 74%]

...this.bar = new Sprite(); this.bar.x = 15; this.bar.y = 2; this.bg.graphics.drawTexture(texture1, 0, 0, 180, 21); this.bar.graphics.drawTexture(texture2, 0, 0, 155, 12); this.addChild(this.bg); this.addChild(this.bar); } /** * 修改当前状态 */ _proto.changeValue = function(value){ this.value += ...

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

88. 如何绘制圆角矩形? [ 74%]

...Number = 1):void 绘制一系列曲线。 如何获取Sprite上用graphics.drawTexture绘制的texture? 使用滤镜、遮罩、或者绘制频率很高的时候回出现黑屏闪烁 怎么检测点是否在 graphics所绘制的区域内 斜矩形怎么计算碰撞 如何清除graphics绘制的矢...

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

89. 通过循环加载图片问题 [ 74%]

...视对象然后通过addChild方法添加到sprite里,不想用graphics.drawTexture方法,因为那种方法在获得sprite的高度和宽度方面有点问题 2016-10-27 0 0 分享 微博 QZONE 微信 cuixueying 赞同来自: 1、如何在Loaded回调下添加dialog,你可以通过为LOADED...

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

90. Sprite-遮罩-放大镜 [ 74%]

...Res(maskPath); let bg = new Sprite(); Laya.stage.addChild(bg); bg.graphics.drawTexture(bgRes); let bg2 = new Sprite(); Laya.stage.addChild(bg2); bg2.graphics.drawTexture(bgRes); bg2.scale(3, 3); // 创建mask let maskSp = new Sprite(); maskSp.graphics.drawTexture(maskRes); maskSp.pivot(50, 50); // ...

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