大约有 1,491 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0052 秒)
...邀请: 与内容相关的链接 提交 1 个回复 sata121 赞同来自: if( window.conch ) { var content=Laya.Browser.context; var width=800; var height=500; window.conch.captureScreen(function(content,width,height){ conch.saveAsPng( content,width,height,conch.getCachePath()+"/test.png" ); }) } ...
来源: Laya_社区 发布时间: 20180227
...lsInfo[index++]; var b = pixelsInfo[index++]; var a = pixelsInfo[index++]; if (r == 255 && g == 255 && b == 255 && a == 255) colaStarArr[h] = 1; else { colaStarArr[h] = 0; } } }; return aStarArr; } 再通过下面的代码,可以初始化A*的地图数据 //读取地形图 ...
来源: Laya3.0_文档 发布时间: 20230303
...资源。 示例代码如下所示: ```typescript //检测安卓平台 if (Laya.Browser.onAndroid) { //注意这里的加载 Laya.loader.load("res/layabox.ktx", Laya.Handler.create(null, function (tex: Laya.Texture2D) { material.albedoTexture = tex; })); } else { //注意这里的加载 Laya.Textu...
来源: Laya2.0_文档 发布时间: 20210714
... any = ILaya.Laya['MiniAdpter']; //头条也继承了这个bug if (miniadp && miniadp.systemInfo && miniadp.systemInfo.system) { bugIOS = miniadp.systemInfo.system.toLowerCase() === 'ios 10.1.1'; //12.3 } if ((IL...
来源: Laya_社区 发布时间: 20240802
...tion vibrateScreen(view: Laya.Sprite, time?: number): void { if (vibrateObj.view) { Laya.timer.clearAll(vibrateObj); //说明上一次的动画还没完成 vibrateObj.view.x = vibrateObj.x; vibrateObj.view.y = vibrate...
来源: Laya_社区 发布时间: 20190401
...nloadFile则有问题,解决方法如下: 在laya.wxmini.js中找到MiniFileMgr.readFile这个方法,有一行if (filePath.indexOf("http://")!=-1 || filePath.indexOf("https://")!=-1),这里有问题,因为下载下来之后tempFilePath前缀是wxfile://,因此把这行...
来源: Laya_社区 发布时间: 20180528
... = cell.width + this._spaceX; var cellHeight = cell.height + this._spaceY; if (this.cacheContent) { var cacheBox = new Box(); cacheBox.cacheAsBitmap = true; cacheBox.pos((this._isVertical ? 0 : startY) * cellWidth, (this._isVertical ? startY : 0) * cellHeight); this._content.addChild(cacheBox); this...
来源: Laya_社区 发布时间: 20180418
...ht); //this.obstacle0是一个精灵对象 this.obstacle0.y += this.speed; if (this.obstacle0.y > Laya.Browser.height) { this.obstacle0.removeSelf(); } }); } 2018-08-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个...
来源: Laya_社区 发布时间: 20180823
...函数 都有 动态合批的判断,你进行一下屏蔽。 在else if中加上 false && 强制屏蔽掉 addToOpaqueRenderQueue和addToTransparentRenderQueue两个函数的else if都是如此。 你试一下 然后可以把测试结果反馈于我。 邮箱:1029805476@qq.com 2020-02...
来源: Laya_社区 发布时间: 20200219
... this['_url']=url=Laya.URL.formatURL(url); if(atlas)this['_atlasPath']=atlasPath?atlasPath:url.split(".swf")[0]+".json"; this.stop(); //this['_clear'](); this._movieClipList=[this]; ...
来源: Laya_社区 发布时间: 20180615