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

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

81. 720 全景图 手指滑动 滑动距离 [ 82%]

...eenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); var scene = Laya.stage.addChild(new Laya.Scene()); scene.shadingMode = Laya.BaseScene.VERTEX_SHADING; var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 0.8, 1.5)); camera.transform.rotate(new ...

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

82. 1.7.17beta,微信小游戏预览加载问题 [ 82%]

...代码为: var scene = Laya.Scene.load("res/testScene.ls"); Laya.stage.addChild(scene); 真机预览报错为: request:fail invalid url "res/testScene.ls" 测试机型为:iPhoneX 2018-03-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...

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

83. Laya.stage.addChild(view); 这个是给场景覆盖添加页面,之前的页面不会销毁,这个问题怎么解决。 [ 82%]

Laya.stage.addChild(view); 这个是给场景覆盖添加页面,之前的页面不会销毁,这个问题怎么解决。 Laya.stage.addChild(view); 这个是给场景覆盖添加页面,之前的页面不会销毁,这个问题怎么解决。 2017-12-19 添加评论 免费帖 --> 分享 微博...

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

84. .lh 文件不能在同一js文件内重复引用吗? [ 81%]

... Laya.Sprite3D.load("DoorShelf/shelf.lh");            this.scene.addChild(shelf0);            shelf0.transform.translate(new Laya.Vector3(-4,1.2,35));            var shelf3 = Laya.Sprite3D.load("DoorShelf/shelf.lh");            this.scene.addChild(shelf3);  ...

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

85. timer.loop帧率高于物理帧率移动父级导致子物体本地坐标异常 [ 81%]

...ME_SLOW;         Laya.Stat.show();         this.scene = Laya.stage.addChild(new Laya.Scene3D());                  Laya.timer.loop(1, this, this.loopfun);     }     loopfun(){         this.lastT = Date.now();         let dis = 1;         if(!this.cubeP){         ...

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

86. 给模型动态添加脚本报错 [ 81%]

...el/hanbao.lh");                 goldNode = this.scene_3d.addChild(sp);                 goldNode.transform.localPosition = new Laya.Vector3(this.startPos.x + (4.5 - Math.random() * 9), this.startPos.y, this.startPos.z + (2.5 - Math.random() * 5));  ...

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

87. 场景进行destroy销毁后,再次加载同一场景,就会报错 [ 81%]

...tParent (file:///D:/H5/bin/libs/laya.core.js:18511:31)   at Stage.__proto.addChild (file:///D:/H5/bin/libs/laya.core.js:13290:9)   at SceneManage.createScene (file:///D:/H5/bin/js/bundle.js:26107:20)   at BattleLoading.<anonymous> (file:///D:/H5/bin/js/bundle.js:18082:57)   at Handler.__pr...

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

88. 为什么我获取不到鼠标滚轮的delta值,我查看laya.events.Event 里面没有这个属性 [ 81%]

...Mode = Laya.Stage.SCALE_FULL; // Laya.Stat.show(); this.scene = Laya.stage.addChild(new Laya.Scene()) as Laya.Scene; this.camera = this.scene.addChild(new Laya.Camera()) as Laya.Camera; this.camera.transform.position = new Laya.Vector3(0, 0, 5); this.camera.transform.rotate(new Laya.Vector3(0, 0, 0)...

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

89. 修改position与修改localPosition结果不一致(同处于3d场景下的两个节点) [ 80%]

...两个节点) //添加自定义模型 var box: Laya.MeshSprite3D = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1, 1, 1))) as Laya.MeshSprite3D; box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); var material: Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial();...

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

90. Laya.loader.load 加载场景报错 [ 80%]

...e(this, function(){ this.scene = Laya.loader.getRes(模型url); Laya.stage.addChild(this.scene); }),null, null, 1, true, "scene1"); 执行后,浏览器报 : laya.core.js:13290 Uncaught TypeError: node._setParent is not a function at Stage.__proto.addChild (laya.core.js:13290) at Main.<anonymo...

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