大约有 2,258 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0069 秒)
Laya_社区(1808) Laya3.0_api(129) laya_api(84) Laya2.0_api(82) Laya2.0_文档(76) Laya_示例(36) Laya3.0_文档(28) Laya2.0_示例(15)
...时会出现[.WebGL-0000000013F60010] GL_INVALID_VALUE: Offset overflows texture dimensions. 2020-09-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为什么被折叠? 0 个回复被折叠 要回复问题请先...
来源: Laya_社区 发布时间: 20200901
drawToTexture 绘制函数不工作呢 let top_rect: Laya.Sprite = new Laya.Sprite(); top_rect.x = 0; top_rect.y = 0; top_rect.size(100, 100); top_rect.graphics.drawRect(0, 0, 100, 100, "#0000FF", "#000000", 1); ...
来源: Laya_社区 发布时间: 20190730
...te; import laya.maths.Matrix; import laya.net.Loader; import laya.resource.Texture; import laya.utils.Handler; public class LayaAirDemo { public function LayaAirDemo() { Laya.init(700,600); Laya.loader.load('res/apes/monkey2.png',Handler.create(this,onLoaded)) } private function onLoaded():void { va...
来源: Laya_社区 发布时间: 20170414
...清除,所有的该图片都失效,引用计数不是有多处?clearTextureRes方法,可解决该问题,但会导致现有的图片重新渲染闪一下,并不完美。 2018-02-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...
来源: Laya_社区 发布时间: 20180227
...g = !this.flag)? this.monkey2:this.monkey1; //获取图片资源 var texture:Laya.Texture = Laya.loader.getRes(imgUrl); //绘制纹理 this.img.graphics.drawTexture(texture); //设置纹理宽高 this.img.size(texture.width, texture.height); <!-- 我想把加粗部分换成 ...
来源: Laya_社区 发布时间: 20180226
...什么克隆一个对象啊? 在下面的“ tempSpr2.graphics.drawTexture(tempSpr.texture, 0, 0, tempSpr.width, tempSpr.height);”中 tempSpr.texture 是空的 if (data && data.items != []) { let tempSpr: Sprite = new Sprite(); let tempImg: Lay...
来源: Laya_社区 发布时间: 20170508
...戏正常可用 private static _sp: Laya.Sprite = null; private static tempTexture2D: Laya.Texture2D; private static tempTexture: Laya.Texture; /**截图 */ public static drawScreenshot(width, height, x, y) { if (!SwitchHelper.screenDraw) { return null; } if (!this.tempTexture2D) { this.tempTextur...
来源: Laya_社区 发布时间: 20191016
...nction onAssetLoaded():void { for(var i:int=0;i<picAy.length;i++) { var texture:Texture= Loader.getRes(picAy); var ape:Sprite = new Sprite; //ape.x=i*(stageWidth/4) //Tween.to(ape, { x : i*(stageWidth/4) },1500,Ease.sineOut); var bl:Number=texture.width/texture.height ape.graphics.drawTexture(tex...
来源: Laya_社区 发布时间: 20161026
...擎 动态创建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
...Laya3D TERRAINRES : String = TERRAIN[static] Terrain资源。Laya3D TEXTURE2D : String = TEXTURE2D[static] Texture2D资源。Laya3D TEXTURECUBE : String = TEXTURECUBE[static] TextureCube资源。Laya3DProperty DetailenbalePhysicspropertyenbalePhysics:* [read-only] 获取是否可以启...
来源: Laya2.0_api 发布时间: 20190513