大约有 360 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0053 秒)
...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
...代码为: 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
Laya.stage.addChild(view); 这个是给场景覆盖添加页面,之前的页面不会销毁,这个问题怎么解决。 Laya.stage.addChild(view); 这个是给场景覆盖添加页面,之前的页面不会销毁,这个问题怎么解决。 2017-12-19 添加评论 免费帖 --> 分享 微博...
来源: Laya_社区 发布时间: 20171219
... 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
...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
...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
...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
...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
...两个节点) //添加自定义模型 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
...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