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

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

21. 2D线渲染器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 88%]

...折线,然而LayaAir3.3开始,提供了更为高级的2D线渲染器(Line2DRender),不仅具有Graphics的画线能力,还支持创建虚线,以及为线段设置材质和纹理,使得2D线也可以接收光照,拥有更加炫酷的线形状效果,例如绳索、渐变线、线段边...

来源: Laya3.0_文档 发布时间: 20251010

22. 射线检测-射线检测 [ 86%]

...= 1; var _scaleIndex = -1; var _color = new Laya.Vector4(1, 0, 0, 1); var _linePos = new Laya.Vector3(0, 1, 0); var phasorSpriter3D = new Laya.PhasorSpriter3D(); function checkHit() { //从屏幕空间生成射线 point.elements[0] = Laya.stage.mouseX; point.elements[1] = Laya.stage.mouseY; camera.v...

来源: Laya_示例 发布时间: 20251209

23. tween有这个一个bug [ 86%]

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

24. getCharPoint的bug [ 85%]

...g laya.core.js的getCharPoint这个函数里,有这样一句话:len += lines[i].length;   请将其改成:len += lines[i].length + 1;   显然开发者没在多行的情况下测试这个函数,换行这种事肯定是末尾有个换行符才会换的嘛!   上面的length没考虑换...

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

25. 3D场景里面怎么画线条 [ 85%]

...= 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

26. uglify压缩后的错误堆栈解析 [ 85%]

...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

27. laya.d3.shader.ShaderPass [ 84%]

...sProtected Methods  MethodDefined By  _compileToTree(parent:ShaderNode, lines:Array, start:int, includefiles:Array, defs:Object):void[override] ShaderPassProperty DetailrenderStatepropertyrenderState:RenderState  [read-only] 获取渲染状态。 Implementation     public function get rende...

来源: Laya2.0_api 发布时间: 20190513

28. 发布时勾选压缩js后,gulp uglify生成的sourcemap在哪里 [ 83%]

...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_社区 发布时间: 20190528

29. HTML行间距 [ 83%]

HTML行间距 请问怎么给SPAN标签内容设置行间距,line-height似乎无效。 2017-09-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞同来自: 2017-09-11 0 0 分享 微博 QZONE 微...

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

30. 射线检测报错,outHitInfo.sprite3D=null; [ 82%]

...量3D精灵,类型为线型 this.phasorSprite3D.begin(Laya.WebGLContext.LINES, this.camera); //根据射线的原点绘制参考直线(为了观察方便而绘制,但矢量线并不是射线真正的路径) this.phasorSprite3D.line(this.ray.origin, new Laya.Vector4(1,0,0,1), position , new L...

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