大约有 360 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0061 秒)
... at Scene3D.__proto._setParent (laya.core.js:18511) at Stage.__proto.addChild (laya.core.js:13290) at Main.Complete3D (Main.ts:48) at Handler.__proto.runWith (laya.core.js:1400) at LoaderManager.__proto._createOne (laya.core.js:14594) at LoaderManager.__proto._create (l...
来源: Laya_社区 发布时间: 20190124
...n(GameConfig.startScene); let view = new ui.test.TestSceneUI(); Laya.stage.addChild(view) 发现runtime也没有运行,是设计就是这样的吗? 就不传demo了 就改动上面两处。 2019-10-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: ...
来源: Laya_社区 发布时间: 20191009
...gt; { let sp3: Laya.Sprite3D = res.create() as Laya.Sprite3D; this.scene3d.addChild(sp3); }); }) Laya.loader.loadPackage("sub2", this.printProgress).then(() => { Laya.loader.load("sub2/Sphere.lh").then((res: any) => { let sp3 = res.create(); this.scene3d.addChild(sp3); }); }) } printProgress(r...
来源: Laya3.0_文档 发布时间: 20250103
...19:56 模型不是场景里的,是后面用代码添加上去的,scene.addChild()
来源: Laya_社区 发布时间: 20171211
...Laya.loader.getRes("res/lk4.lh") as Laya.Sprite3D; //加载到场景 scene.addChild(role3D); //此处报错 var ani = role3D.getComponent(Laya.Animator) as Laya.Animator; //播放攻击状态 ani.play(); chrome 调试: addChild(node) { if (!node || this.destroyed || node === ...
来源: Laya_社区 发布时间: 20191203
...anelRotationTest(Laya.Sprite); testSpriteRotation.pos(300,260); Laya.stage.addChild(testSpriteRotation); var testPanelRotation:PanelRotationTest = new PanelRotationTest(Laya.Panel); testPanelRotation.pos(1000,260); Laya.stage.addChild(testPanelRotation); Laya.Tween.to(testPanelRotation,{rotation:720...
来源: Laya_社区 发布时间: 20170814
...ader.getRes("res/scenes/LayaScene_game/game.ls") as Laya.Scene; Laya.stage.addChild(gameScene); }, null), Laya.Handler.create(this, (progress) => { console.log("当前进度:", progress) },null,false), Laya.Scene );07-11 16:53:45.923 30921-30972/? E/jswrapper: [ERROR] Failed to invoke _runtime_re...
来源: Laya_社区 发布时间: 20190711
... let mArmature = mFactory.buildArmature(1); parent.addChild(mArmature); mArmature.pos(parent.x+parent.width/2, parent.y+parent.height/2); mArmature.scale(3, 3); mArmature.on(Laya.Event.STOPPED, this, this.completeHandler); ...
来源: Laya_社区 发布时间: 20190730
...过 var scene = new GameScenePVP(); Laya.stage.addChild(scene); 添加上本类 GameScenePVP 中 设置了物理世界的初始化 游戏结束 我调用 Laya.stage.removeChild(this); 但是 上面的物理 的刚体 还是存在 本类 求高手 指点...
来源: Laya_社区 发布时间: 20170421
...写? Laya_Aaron • 2018-05-29 16:45 @灬倪先森_:var layaMonkey = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); 这个是示例中的,有几种方法,文档中也有,而且有例子。https://ldc.layabox.com/doc/?nav=zh-as-4-0-5,...
来源: Laya_社区 发布时间: 20180529