• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,020 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0081 秒)

911. Laya3D 中如何解决3D模型上添加文本的问题,类似Unity中的3DText [ 45%]

...}); var dataTexture = Laya.DataTexture2D.create(imageData.data, 512, 128); console.log("data:" + imageData.data.length); sprite3DMat.diffuseTexture = dataTexture; sprite3D.meshRender.material = sprite3DMat; } //绘制文字到canvas,判断换行位置,和设置canvas高度 public canva...

来源: Laya_社区 发布时间: 20180814

912. tween有这个一个bug [ 45%]

...a.Ease.cubicIn,null,(i+1)*400); } point.visible=false; point.alpha = 0; // console.log(line); Laya.Tween.to(point,{x:point.x,y:point.y,alpha:1,update:Laya.Handler.create(point,function(){ this.visible = true; })},800,Laya.Ease.backOut,null,i*400); if(i%2==1 && i!=9){ point.x-=200; }else{ poi...

来源: Laya_社区 发布时间: 20180118

913. [LayaAirIDE3]咋么实现鼠标点击角色移动 [ 45%]

... if (Laya.loader.getRes(clipPath)) { this.loadedClips.push(clipPath); } } console.log(`[iceMonster] 成功加载 ${this.loadedClips.length} 个 .mc 剪辑`); })); } /* ------------------------------------------------- * 播放指定剪辑 * ------------------------------------------------- */ privat...

来源: Laya_社区 发布时间: 20251211

914. 打包发布vivo,调试黑屏 [ 45%]

...有输出报错,自己的项目也没有日志中也没有update里面的console.下面是demo跟截图 附件 : --> coin_scroll_vivo.rar 2019-11-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 7 个回复 kylin 赞同来...

来源: Laya_社区 发布时间: 20191130

915. 无法触发浏览器文件上传框 [ 44%]

...leInput = Laya.Browser.document.getElementById('file'); fileInput.click(); console.log(fileInput);//input#file } } new GameMain();在laya里无法触发浏览器<input type="file" id="file">文件上传框? 附件 : --> html-upload.rar 2017-05-11 添加评论 免费帖 --> 分享 微博 QZON...

来源: Laya_社区 发布时间: 20170511

916. webGL模式下 graphic画线涂鸦,一直不停画会出现线条异常 [ 44%]

...this.__mouseMove); this.bmp.on(Laya.Event.MOUSE_UP, this, this.__mouseUp); console.log(this.pos0.x); } __mouseMove(e:Event){ this.pos1.x=this.bmp.mouseX this.pos1.y=this.bmp.mouseY; if(Utils3D.getThis.getDistance(this.pos0,this.pos1)>10){ this.bmp.graphics.drawLine(this.pos0.x,this.pos0.y,this.po...

来源: Laya_社区 发布时间: 20170831

917. Maximum call stack size exceeded [ 44%]

...in.scene");           }           onEnable() {             console.log('init');         }     }       /**This class is automatically generated by LayaAirIDE, please do not make any modifications. */       class GameConfig {         static init() {             //...

来源: Laya_社区 发布时间: 20201110

918. 加载TiledMap 不显示 [ 44%]

...ge.height), Handler.create(this, this.mapLoaded));     //      console.log(Laya.stage.width, Laya.stage.height);     //  // }));      // }      // private onStageClick (): void     // {     //  var p: Point = new Point(00);     //  this.lay...

来源: Laya_社区 发布时间: 20201230

919. [含Demo]Laya2.0.1出包微信小游戏Android黑屏 expected Number(uniform4f) [ 44%]

...2.6.6 5. iOS扫码启动,渲染正常 6. Android扫码启动,黑屏,vConsole报错如下: gameThirdScriptError expected Number(uniform4f);at requestAnimationFrame callback function Error: expected Number(uniform4f) expected Number(uniform4f);at requestAnimationFrame callback function Error: ...

来源: Laya_社区 发布时间: 20190423

920. 关于laya生成的canvas定位问题导致内部事件不正确 [ 44%]

...; img.on(Laya.Event.MOUSE_DOWN, img, onStartDrag); function onStartDrag(){ console.log(this); clickIndex++; msgDiv.html('图片选中了' + clickIndex + '次'); // img.startDrag(); } // Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; // Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; }); </script> &...

来源: Laya_社区 发布时间: 20170427