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

大约有 189 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0044 秒)

21. [0]Laya3.0.3 的VideoNode不支持在微信浏览器中播放 [ 81%]

...VideoNode不支持在微信浏览器中播放 let videoNode = this.owner.getChildByName("VideoNode") as Laya.VideoNode; videoNode.source = 'xxx.mp4'; videoNode.play(); // 上面代码在PC端安卓苹果等自带浏览器支持视频播放,但是在微信浏览器无任何显示。 let mat = new L...

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

22. as还能用getChildByName方法吗? [ 81%]

as还能用getChildByName方法吗? as还能用getChildByName方法吗? 要怎么使用啊? Laya.stage.getChildByName("egg"+i); this.getChildByName("egg"+i); Laya.getChildByName("egg"+i); 都不对 2017-05-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...

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

23. (实现手指控制模型的缩放旋转)触控可以识别 但是导入的模型没有根据触控反应 [ 81%]

...er.parent as Laya.Scene3D;         this._text = this._scene.parent.getChildByName("ceshi") as Laya.Text;         this._camera = this._scene.getChildByName("camera") as Laya.Camera; } onUpdate(){ var touchCount = this._scene.input.touchCount();         if (1 === touchCount){ ...

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

24. 寻路导航示例中添加Laya.PathFind组件报异常 [ 79%]

...取可行走区域模型 var meshSprite3D: Laya.MeshSprite3D = this.scene.getChildByName('Scenes').getChildByName('HeightMap') as Laya.MeshSprite3D; //使可行走区域模型隐藏 meshSprite3D.active = false; var heightMap: Laya.Texture2D = Laya.Loader.getRes("../../res/threeDimen/scene/TerrainSce...

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

25. Laya多点触控是有开关吗 为什么多点触控没有任何反应 [ 79%]

...s.scene = this.owner.parent;         this.text = this.scene.parent.getChildByName("ceshi");         this.camera = this.scene.getChildByName("camera");     }     onUpdate(){         let touchCount = this.scene.input.touchCount();         if (1 === touchCount){ ...

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

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

...Texture = tex; })); box.meshRenderer.material = material; var monkey = res.getChildByName("LayaMonkey"); //查找节点 var bonePoint:Sprite3D = this.findChild(monkey,"bonepoint"); //将盒子精灵添加到找到的骨骼节点上 bonePoint&&bonePoint.addChild(box); })); ``` > 节点查找 ```types...

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

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

...Texture = tex; })); box.meshRenderer.material = material; var monkey = res.getChildByName("LayaMonkey"); //查找节点 var bonePoint:Sprite3D = this.findChild(monkey,"bonepoint"); //将盒子精灵添加到找到的骨骼节点上 bonePoint&&bonePoint.addChild(box); })); ``` > 节点查找 ```types...

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

28. 资源加载(TypeScript-3D基础(TS)-LayaAir3D之资源加载) [ 79%]

...Scene3d Laya.stage.addChild(scene); //获取摄像机 var camera = scene.getChildByName("Main Camera"); //清除摄像机的标记 camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; //添加光照 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(...

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

29. laya2 物理引擎好多问题 [ 78%]

... ni.wrapMode=0; ni.play(0,false);  var man:Laya.Sprite= this.owner.parent.getChildByName('man') as Laya.Sprite; var cil2:Laya.PolygonCollider=man.getComponent(Laya.PolygonCollider); var rig2:Laya.RigidBody=man.getComponent(Laya.RigidBody); var mou:Laya.MouseJoint=man.getComponent(Laya.MouseJoint); ...

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

30. 按照范例写的碰撞一直检测不到 this.outHitInfo.distance [ 78%]

...中的角色移动碰撞区模型 var moveArea = this.scene.getChildAt(0).getChildByName("MoveArea"); //设置为不渲染 moveArea.meshRender.enable = false; //加载网格碰撞器组件 var sprite3d1MeshCollider=moveArea.addComponent(Laya.MeshCollider); //官方js例子里少了下面这行 sprit...

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