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

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

1. 分享,扩展Laya.Text组件实现简单的富文本 [ 100%]

...字 private typeIndexList = ; //关键字所在文本的位置 private typeLines = ; //利用关键字重新划分文本 private underLineWidth = 0; //下划线长度 private underColor = ""; //下划线颜色 /** * 渲染文字 * @param begin * @param visibleLineCount */ renderText(begin, visibleLi...

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

2. IDE设计模式LINE无法定义var或者name,在代码中如何操作这个控件 [ 95%]

IDE设计模式LINE无法定义var或者name,在代码中如何操作这个控件 IDE设计模式LINE无法定义var或者name,在代码中如何操作这个控件   附件 : --> 2018-01-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...

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

3. Laya引擎bug [ 94%]

... *@private     *分析文本换行。     */     __proto.parseLines=function(text){         var needWordWrapOrTruncate=this.wordWrap || this.overflow==Text.HIDDEN;         if (needWordWrapOrTruncate){             var wordWrapWidth=this.getWordWrapWidth();  ...

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

4. Text.as中parseLines方法里的问题 [ 94%]

Text.as中parseLines方法里的问题 是这样的,上线的小游戏,在微信后台中看到有错误日志: TypeError: undefined is not an object (evaluating 's.width') at line 3 in https://usr/game.js _parseLines@https://usr/game.js:3:256231 typeset@https://usr/game.js:3:255040 typeset@h...

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

5. 画出来鼠标轨迹线 [ 93%]

...明第一个老婆 var img2=new Laya.Sprite();//声明第二个老婆 var lines=new Laya.Sprite();//声明全彩老婆的遮罩层 var times=800;//持久时间 Laya.stage.on(Laya.Event.MOUSE_MOVE,this,mousemove);//事件绑定,当鼠标移动时触发mousemove事件 //把声明的第一个老婆...

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

6. phasorSpriter3D 无法使用 [ 90%]

...boundBox.getCorners(_corners) this.phasorSpriter3D.begin(Laya.WebGLContext.LINES, this.camera); this.phasorSpriter3D.line(_corners[0], _color, _corners[1], _color); this.phasorSpriter3D.line(_corners[1], _color, _corners[2], _color); this.phasorSpriter3D.line(_corners[2], _color, _corners[3], _color...

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

7. tween有这个一个bug [ 88%]

tween有这个一个bug 先创建一个timeline循环按钮动画 var timeLine = new Laya.TimeLine(); timeLine.addLabel("ZoomIn",0).to(share.btShare,{scaleX:0.9, scaleY:0.9},400,Laya.Tween.cubicOut,0) .addLabel("ZoomOut",0).to(share.btShare,{scaleX:1.0, scaleY:1.0},400,Laya.Tween.cubicOut,0); timeL...

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

8. 小游戏安卓不支持filters [ 87%]

...线条 下面是部分代码 this.cutLayer.graphics.clear(); for(i = this.lines.length - 1; i >= 0; i--){ var line = this.lines[i]; line.state++; if(line.state > 7){ this.lines.splice(i, 1); } this.cutLayer.graphics.drawLine(line.x1, line.y1, line.x2, line.y2, "#ffffff", this.lineBorder - line...

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

9. uglify压缩后的错误堆栈解析 [ 86%]

...inalPosition.source const originalPosition = consumer.originalPositionFor({line:frame.line, column:frame.column}); console.log(originalPosition); // 错误所对应的源码 // const sourceContent = consumer.sourceContentFor(originalPosition.source); // console.log(sourceContent); // const generated...

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

10. 3D场景里面怎么画线条 [ 86%]

...= new Laya.Vector3(0,0,100);     phasorSpriter3D.begin(Laya.WebGLContext.LINES, camera); phasorSpriter3D.line(_corners[0], _color, _corners[1], _color); phasorSpriter3D.line(_corners[1], _color, _corners[2], _color); phasorSpriter3D.line(_corners[2], _color, _corners[3], _color); phasorSpriter3D.l...

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