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

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

6831. Cannot read property 'rayCast' of undefined [ 44%]

....8, -1); this.directionLight.color = new Laya.Vector3(0.7, 0.6, 0.6); Laya.Sprite3D.load("res/scene/LayaScene_webgl_sky/Conventional/webgl_sky.lh", Laya.Handler.create(this, this.onLoadFinish)); Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.mouseDown); } onLoadFinish(layaMonkey){ this.layaMonkey=t...

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

6832. 在Laya中使用Matter.js的最简示例 (JS) [ 44%]

...答(最新版本:1.7.16) TS项目使用matter.js库无智能提示 sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale 使用3D时候,Property 'getComponentByType' does not exist on type 'Node'. LayaAirIDE下如何使用mask? 求高人分享使用protobuff框架的...

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

6833. html固定宽高,设置垂直居中没有效果。只有水平居中才生效。看了下源码,感觉在updatePos函数里的算法不对 [ 44%]

...定, 无法添加新回复 发起人 momo199059 相关问题 如何设置Sprite的宽高和点击区域? 使用钢体设置防穿后仍有几率会穿透 龙骨skeleton鼠标点击区域的设置 Laya3D里的material可以设置flat shading么 关于shader中opengl函数问题 list 每次滑动,...

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

6834. Mesh网格-网格加载 [ 44%]

...r3(1, -1, -1); //加载网格 var layaMonkey = scene.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("../../res/threeDimen/skinModel/LayaMonkey/Assets/LayaMonkey/LayaMonkey-LayaMonkey.lm"))); layaMonkey.transform.localScale = new Laya.Vector3(0.3, 0.3, 0.3); layaMonkey.transform.rotation = new Laya.Qu...

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

6835. layaair1.78版本 textarea和textinput在电脑平台时一点击整个canvas往上移动。 [ 44%]

...的PureMVC框架 分享:打地鼠 AS、JS、TS版本 Demo! 如何设置Sprite的宽高和点击区域? 求指点3d射线碰撞和UI点击穿透的问题 btn 鼠标移动上去默认文本颜色是绿色,我想换成其他颜色,如何操作? 请问2.0的版本开始,我用ts编写的...

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

6836. [Error] TypeError: null is not an object (evaluating 'this._style._tf') [ 44%]

...lass[MiniAdpter] already exist: Object {init: } 请问object层中添加的sprite怎么添加点击事件 IDE不能运行调试提示:Chrome error: Error:... LayaAirIDE2.2 - Laya3D init error ,must support webGL 问题状态 最新活动: 2018-10-22 17:04 浏览: 5513 关注: 2 人 123黄 • 2018...

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

6837. [LayaAir3]静态合批与合批组件问题 [ 44%]

...我把动态合批关掉,只勾选静态合批,以及场景里的每个Sprite3D是静态。纹理用默认的defalut。然后无论勾不勾选静态合批场景的drawCall都没有降低。查源码laya.d3.js 的Config3D.enableStaticBatch 无论true与false 走的都代码流程都一样。 总...

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

6838. 动画挂点(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 44%]

...{ Laya.stage.addChild(res); //用于挂点的精灵 var box = new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1,1,1)); var material = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(this, function(tex) { material.albedoTexture = tex; })); box.meshRenderer...

来源: Laya2.0_文档 发布时间: 20210715

6839. 动画挂点(JavaScript-3D基础(JS)-LayaAir3D之Animator动画) [ 44%]

...{ Laya.stage.addChild(res); //用于挂点的精灵 var box = new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1,1,1)); var material = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(this, function(tex) { material.albedoTexture = tex; })); box.meshRenderer...

来源: Laya2.0_文档 发布时间: 20210714

6840. Cannot read property 'toDefault' of undefined报错是什么原因 [ 44%]

...ew Laya.Vector2(); this._outHitInfo = new Laya.RaycastHit(); // this.phasorSpriter3D = new Laya.PhasorSpriter3D(); } MousePickingScene.prototype.lateRender = function (state) { MousePickingScene.__super.prototype.lateRender.call(state); //从屏幕空间生成射线 this.point.elements[0] = Laya.sta...

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