大约有 718 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0065 秒)
Laya_社区(510) Laya3.0_api(67) Laya2.0_api(61) laya_api(55) Laya2.0_文档(13) Laya2.0_示例(7) Laya3.0_文档(3) Laya_示例(2)
...lineColor:* = null, lineWidth:Number = 1):void 绘制矩形。 Graphics drawTexture(tex:Texture, x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0, m:Matrix = null, alpha:Number = 1):Array 绘制纹理。 Graphics drawTextures(tex:Texture, pos:Array):void 批量绘制同样纹理...
来源: laya_api 发布时间: 20170929
...YA/PFX12/H5_SHZ/bin/libs/laya.core.js:23049:18) at WebGLContext2D.__proto._drawTextureM (file:///E:/FS_Project/trunk/LAYA/PFX12/H5_SHZ/bin/libs/laya.core.js:21451:26) at WebGLContext2D.__proto.drawTexture (file:///E:/FS_Project/trunk/LAYA/PFX12/H5_SHZ/bin/libs/laya.core.js:21355:9) at RenderContext....
来源: Laya_社区 发布时间: 20170103
...e = true;//小游戏使用,非常费,每帧刷新 rankSprite2.graphics.drawTexture(rankTexture,5,78,rankTexture.width,rankTexture.height); }); 报错bitmap._addReference is not a function TypeError: bitmap._addReference is not a function 这是报错地方的代码 /** *<code>Texture</c...
来源: Laya_社区 发布时间: 20180504
...后,位置改变,便于观察效果 sp2.graphics.clear(); sp2.graphics.drawTexture(texture,0,0,800,800);//绘制texure纹理到sp2 Laya.stage.addChild(sp2);//将sp2添加到舞台并显示 } } } 可以通过上面Texture的方式对截屏后的纹理进行绘制显示,也可以通过base64码...
来源: Laya_社区 发布时间: 20170822
... ape.loadImage("../../res/apes/monkey3.png"); // 方法2:使用drawTexture Laya.loader.load("../../res/apes/monkey2.png", Handler.create(this, function() { var t = Laya.loader.getRes("../../res/apes/monkey2.png"); var ape = new Sprite(); ape.graphics.drawTexture(t, 0,...
来源: Laya_社区 发布时间: 20180604
...hild(ape); ape.loadImage("../../res/apes/monkey3.png"); // 方法2:使用drawTexture Laya.loader.load("https://s2.d2scdn.com/2017/12/ ... ot%3B, Handler.create(this, function() { var t = Laya.loader.getRes("https://s2.d2scdn.com/2017/12/ ... 6quot;); var ape = new Sprite(); ape.scaleX = 0.5 ape.sc...
来源: Laya_社区 发布时间: 20171220
... { img = new Sprite(); //获取图片资源,绘制到画布 img.graphics.drawTexture(Laya.loader.getRes(Res),150,50); //添加到舞台 Laya.stage.addChild(img); } } } ``` 编译运行效果如图2所示: (图2) ### 2.2 创建一个圆形的遮罩区域 用代码创建一...
来源: Laya2.0_文档 发布时间: 20210714
...叠 要回复问题请先登录 发起人 会飞的提莫 相关问题 2.0 drawTexture color参数无效 怎样获取浏览器地址传过来的GET参数 参照技术文档自定义Shader写的TypeScript版本,运行后 Sprite 显示尺寸不对,帮忙看下哪里要调整? 对象池对类怎...
来源: Laya_社区 发布时间: 20200409
...阴影属性无效 关于同为object层,层级设置无效的问题 2.0 drawTexture color参数无效 matter.js mouseconstraint在微信小游戏中无效 3D动画混合无效 ColorFilter滤镜在遮罩下无效 transform.pivot = new Laya.Vector3(0,1,0); 设置pivot无效~~~~~~~~~~~~~ 鼠标点...
来源: Laya_社区 发布时间: 20180531
...阴影属性无效 LayaAir3D UnityPlug 1.7.13 导出刚体动画无效 2.0 drawTexture color参数无效 关于同为object层,层级设置无效的问题 Native下LayaGL.instance无法获取 关于绑定点击事件无效的问题! Native 在iOS上支付失败的问题,及临时解决方法 ...
来源: Laya_社区 发布时间: 20170519