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

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

51. 3D加载[ 88%]

...at.show();         //添加3D场景         var scene = Laya.stage.addChild(new Laya.Scene());         //添加照相机         var camera = (scene.addChild(new Laya.Camera(0, 0.1, 10000)));         camera.transform.translate(new Laya.Vector3(0, 5, 5));         camera.transf...

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

52. UI-RefreshList [ 88%]

...reshLoading.bottom = 10; this.refreshLoading.visible = false; this.baseBox.addChild(this.refreshLoading); // 加载动画 this.loadingAni = new Animation(); this.loadingAni.loadAnimation("res/ui/refreshList/ani/Refresh.ani"); this.loadingAni.pos(27, 36); this.loadingAni.autoPlay = true; this.refresh...

来源: Laya2.0_示例 发布时间: 20251130

53. 新手引导在ios浏览器表现异常 [ 88%]

...age.width,Laya.stage.height,"#FFFFFF");             Laya.stage.addChild(sp);              let guideView = new MazeGuideView();             guideView.zOrder = MazeConst.gameZOrder;             guideView.pos(0,0);             Laya.stag...

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

54. 3D阴影无法渲染出来 [ 88%]

3D阴影无法渲染出来 //添加方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.direction = new Laya.Vector3(1, -1, 0); directionLight.shadow = true; directionLight.shadowDistance = 3; directionLight...

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

55. 使用U3D导出粒子特效显示 [ 88%]

...官方示例脚本,加载一个从U3D导出的2D粒子特效Laya.stage.addChild(Laya.Scene.load(url)) 但是粒子显示。想问到底这个步骤怎么搞?急急急!!!!我把导出的资源上传了。 附件 : --> LayaScene_1.rar 2018-03-20 添加评论 免费帖 --> 分享 微...

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

56. 怎么设置模型高度 [ 87%]

...ya.BoxMesh(0.6, 0.6, 0.6); var box = new Laya.MeshSprite3D(boxmesh); scene.addChild(box); box.transform.translate(_position); box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); var material = new Laya.StandardMaterial(); material.diffuseTexture = Laya.Texture2D.load("res/layabox.png"); ...

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

57. list 下 生成图片模糊 [ 87%]

...if (!root) { root = new Sprite(); root.pos(0, 0); root.name = "root"; cell.addChild(root); } 。。。。。 生成的 图片 从一个场景中回来在生成 他的 子物体 Sprite 在切换场景再回来 在生成 如此多次 自后 我的 list 内部 数量比较多但大部分都是重复,...

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

58. drawToTexture 绘制函数工作呢 [ 87%]

...ect(0, 0, 100, 100, "#0000FF", "#000000", 1);          Laya.stage.addChild(top_rect);          let rect_bottom: Laya.Sprite = new Laya.Sprite();         rect_bottom.x = 0;         rect_bottom.y = 0;         rect_bottom.size(100, 100);         rect_bo...

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

59. vbox动态添加子项目问题 [ 87%]

...加子项目问题 UI里有一个VBOX,然后代码里通过for循环来addChild(ItemRender)的方式 添加子项目,页面中发现所有子项目居然重叠在一起了,使用了vbox.refresh()也没用,如何能让动态添加进入vbox的东西正常排列? 2018-08-29 添加评论 免...

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

60. 游戏加载进度失效 [ 87%]

...Animation(); var waterBg = Laya.Sprite.fromImage("res/bg.png"); Laya.stage.addChild(waterBg); //创建背景 this.bg = []; this.bg[0] = new BackGround("res/bg1.png", 0.1); this.bg[0].pos(0, 0); Laya.stage.addChild(this.bg[0]); this.bg[1] = new BackGround("res/bg2.png", 1); this.bg[1].pos(0, 0); Laya...

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