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

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

11. 父物体旋转会导致子物体的世界坐标系不正确?(附demo) [ 85%]

...时候,我在代码中动下面圆盘的transform.positionthis.block = s.getChildByName("target_root").getChildByName("PendulumCircleTarget").getChildByName("MoveBlockPivot").getChildByName("TargetGuard") as Laya.Sprite3D; Laya.stage.on(Laya.Event.KEY_PRESS, this, this.KeyPress); this.pivot = s.ge...

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

12. rigidBody.applyForce 物体不会移动 [ 84%]

...(scene); //添加方向光 var directionlight: Laya.DirectionLight = scene.getChildByName( "Directional Light" ) as Laya.DirectionLight; this.directionlight = directionlight; //加入子層人物腳色到舞台 var littleGirl: Laya.Sprite3D = scene.getChildByName( "Girl" ) as Laya.Sprite3D; scene.ad...

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

13. 列表嵌套另外一个列表 [ 83%]

...d { //当list刷新时接收并更改单元格属性 var hero:Image = cell.getChildByName("hero")as Image;//根据名字查找要更改的单元格 hero.disabled = HostData.array[index].hero;//属性更改 var ani :Animation = cell.getChildByName("heroani") as Animation;//加载...

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

14. list点击label保留一种状态 [ 83%]

...nction onRender(item,index){ var dataIndex = data[index]; var label = item.getChildByName('lab'); if(dataIndex.type == false){ label.bgColor = '#f3d9b4'; }else { label.bgColor = 'red'; } } function onSelect(ev,index){ data[index].type = data[index].type ? false : true; record_slide_list.setItem(inde...

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

15. as还能用getChildByName方法吗? [ 82%]

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

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

16. Panel 的 滑动问题 [ 82%]

...容 滑动(子物体一个),好像就能直接滑动到末尾 this.getChildByName("panelName").scrollTo(scrollX, 0); 引擎是 layaair 1.7,  由于是300 毫秒,进入场景会看到 内容跳动 2017-04-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...

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

17. 射线检测-碰撞器混合 [ 81%]

...tor3(8, 8, 8); this.layaMonkeyMeshSprite3D = this.layaMonkey.getChildAt(0).getChildByName("LayaMonkey"); //添加盒型碰撞器 var boxCollider = this.layaMonkeyMeshSprite3D.addComponent(Laya.BoxCollider); boxCollider.setFromBoundBox(this.layaMonkeyMeshSprite3D.meshFilter.sharedMesh.boundingBox); t...

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

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

19. PBRStandardMaterial材质详解(TypeScript-3D基础(TS)-模型材质详解) [ 81%]

...rdMaterial.SmoothnessSource_MetallicGlossTexture_Alpha; var barrel = scene.getChildByName("Wooden_Barrel") as Laya.MeshSprite3D; var barrel1 = scene.getChildByName("Wooden_Barrel (1)") as Laya.MeshSprite3D; var barrel2 = scene.getChildByName("Wooden_Barrel (2)") as Laya.MeshSprite3D; var barrel3 = s...

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

20. 材质-PBRStandard材质 [ 81%]

...e.once(Laya.Event.HIERARCHY_LOADED, this, function () { var camera = scene.getChildByName("Main Camera"); camera.addComponent(CameraMoveScript); camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; var skyBox = new Laya.SkyBox(); camera.sky = skyBox; skyBox.textureCube = Laya.TextureCube.load("../../re...

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