大约有 368 项符合查询结果, 库内数据总量为 30,902 项。 (搜索耗时: 0.0039 秒)
Laya_社区(167) Laya3.0_api(64) Laya2.0_api(59) laya_api(55) Laya2.0_文档(12) Laya2.0_示例(6) Laya3.0_文档(3) Laya_示例(2)
...aphics.clear(); var texture = Laya.loader.getRes(textureUrl); ape.graphics.drawTexture(texture, 0, 0); // 设置交互区域 ape.size(texture.width, texture.height); } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Texture = Laya.Texture; import Handler = Laya.Hand...
来源: Laya_示例 发布时间: 20250221
graphics.drawTextures批量绘制图片,如何访问其中的单独一个图片呢? graphics.drawTextures批量绘制图片,如何访问其中的单独一个图片呢? 2017-05-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...
来源: Laya_社区 发布时间: 20170519
Sp.graphics.drawTexture()中的color参数使用的时候,会概率性导致整个场景中的节点颜色改变成我们使用过的颜色。 没有进行其他操作 Sp.graphics.drawTexture(_PreloadUrl._list.texture.brushworkCommon.texture, pointArr[index].x - this.DrawControl.radiu...
来源: Laya_社区 发布时间: 20201103
...nction onClick():void { image.skin="bg.jpg"; } } }方法2:使用graphics.drawTexture的方式】 package { import laya.display.Sprite; import laya.events.Event; import laya.net.Loader; import laya.resource.Texture; import laya.utils.Handler; public class LayaAirDemo { private var sp:Sprite; public...
来源: Laya_社区 发布时间: 20170628
...r引擎 动态创建img 或 sprite let dd = new Laya.Sprite(); dd.graphics.drawTexture(this.img.texture, 0, 0, 750, 1334); dd.x = 50; dd.y = 50; this.addChild(dd); this.img 绝对不为空,我想用一个sprite来画它,请问什么画(不是拷贝)? 2018-01-24 添加评论 免费帖...
来源: Laya_社区 发布时间: 20180124
...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_示例 发布时间: 20250221
...xture = Laya.loader.getRes(imgUrl); //绘制纹理 this.img.graphics.drawTexture(texture); //设置纹理宽高 this.img.size(texture.width, texture.height); <!-- 我想把加粗部分换成 this.img.graphics.drawTexture(Laya.loader.getRes(imgUrl),100,50,60,60); 为什么就不...
来源: Laya_社区 发布时间: 20180226
...; Laya.stage.addChild(ape); ape.loadImage(monkey1Path); // 方法2:使用drawTexture Laya.loader.load(monkey2Path, Laya.Handler.create(this, function () { let monkey2 = Laya.loader.getRes(monkey2Path); let ape2 = new Laya.Sprite(); Laya.stage.addChild(ape2); ape2.graphics.drawTexture(monkey2, 100,...
来源: Laya2.0_示例 发布时间: 20250221
在Canvas模式下 drawTexture出错 WebGL模式下正常 Canvas模式下 在短时间内连续调用drawTexture和destroy会报错 Uncaught TypeError: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The provided value is not of type '(CSSImageValue or HTMLImageElement or SVGImageEleme...
来源: Laya_社区 发布时间: 20180118
... 以下是原文的代码,也是我疑问的地方:// 方法2:使用drawTexture Laya.loader.load("../../../../res/apes/monkey2.png", Handler.create(this, function():void { var t:Texture = Laya.loader.getRes("../../../../res/apes/monkey2.png"); var ape:Sprite = new Sprite(); ape.graphics.drawTe...
来源: Laya_社区 发布时间: 20170804