大约有 1,492 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0045 秒)
...内容相关的链接 提交 3 个回复 李政666 赞同来自: //主域if(Laya.Browser.onMiniGame){//加载一个json和图集Laya.loader.load(["json/reward.json","res/atlas/test.atlas"],Laya.Handler.create(null,function(){//加载完成//使用接口将图集透传到子域Laya.MiniAdpter.sendAtl...
来源: Laya_社区 发布时间: 20190419
...mersive-ar" Returns Promise<boolean> A Promise that resolves to true if supported and false if not off off(type: string, listener: Function): EventDispatcher off(type: string, caller: any, listener?: Function, args?: any[]): EventDispatcher Inherited from EventDispatcher.off Defined in laya/ev...
来源: Laya3.0_api 发布时间: 20231115
使用js压缩工具报错 提示undifined 附件 : --> LayaDefault.max_.zip 2018-08-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 Laya_Aaron 赞同来自: 描述一下问题,不要直接发demo,正常跑...
来源: Laya_社区 发布时间: 20180806
uglify压缩后的错误堆栈解析 1、js的压缩工具:.laya/publish.js 中 // 压缩js gulp.task("compressJs", ["compressJson"], function () { if (config.compressJs) { return gulp.src(config.compressJsFilter, { base: releaseDir }) .pipe(sourcemaps.init({loadMaps:true})) .pipe(uglify({ mangle...
来源: Laya_社区 发布时间: 20200720
...染出。 怎样获取浏览器地址传过来的GET参数 通过laya嵌入iframe 后 原本laya禁止微信浏览器里面的上下滑动,又开始上下滑动了 问题状态 最新活动: 2019-08-28 19:04 浏览: 2037 关注: 3 人 vincent • 2019-08-28 19:37 我看了一下支持度只有69%...
来源: Laya_社区 发布时间: 20190828
...ore(); let dt = _targets.getData(0, 0, w, h);//像素数据 ctx.destroy(); if(!this.aImg){ let aImg:Laya.Image = new Laya.Image(this.aUrl); aImg.scaleX = aImg.scaleY = 2; Laya.stage.addChild(aImg); aImg.mouseEnabled = false; this.aImg = aImg; } //清除目标纹理的像素 let _sourceTex:Laya.Textu...
来源: Laya_社区 发布时间: 20230328
...t = 0; for(var i:int=0; i<200; i++) { for(var j:int=0; j<100; j++) { if(count == 10000) { var htmlCanvas:HTMLCanvas = a.drawToCanvas(width,height,0,0); var texture:Texture = new Texture(htmlCanvas); var b:Sprite = new Sprite(); b.graphics.drawTexture(texture); a.graphics.clear(true); a.destroy...
来源: Laya_社区 发布时间: 20181113
...nit(100,100); var sessionStorage:any = Laya.Browser.window.sessionStorage; if(sessionStorage.pagecount){ sessionStorage.pagecount = parseInt(sessionStorage.pagecount)+1; } else{ sessionStorage.pagecount = 1; } console.log(sessionStorage.pagecount); } } new LayaSample(); ``` var sessionStorage:any = ...
来源: Laya2.0_文档 发布时间: 20210715
...figLOById(allEquipArr[i].baseId.toString()); //装备类型分类再显示 if(itemlo) { data.push({itemImg:""+itemlo.image, m_label:""+allEquipArr[i].amount}); } } this.otherItem_list.array = data; this.otherItem_list.mouseHandler = new Handler(this,otherItem_listRender); fengjin...
来源: Laya_社区 发布时间: 20180321
...置文本字体颜色 label.color = color; //如果有描边颜色参数 if (strokeColor) { //文本描边宽度为4 label.stroke = 4; //设置文本描边颜色 label.strokeColor = strokeColor; } //加载到舞台 Laya.stage.addChild(label); return label; } } } ```
来源: Laya2.0_文档 发布时间: 20210714