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

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

161. 加载.ls场景文件,销毁场景,再加载同一场景,想恢复初始状态,结果报错【附Demo】 [ 71%]

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

162. 官方的2d案例换成内嵌模式会报错 [ 71%]

...n(GameConfig.startScene); let view = new ui.test.TestSceneUI(); Laya.stage.addChild(view)  发现runtime也没有运行,是设计就是这样的吗?   就不传demo了 就改动上面两处。 2019-10-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: ...

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

163. 微信小游戏 · LayaAir3.3 · 引擎文档 · LAYABOX [ 71%]

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

164. 关于场景加载模型加载顺序的问题 [ 70%]

...19:56 模型不是场景里的,是后面用代码添加上去的,scene.addChild()

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

165. unity导出的3D动画模型,导入 laya环境报错: node._setParent is not a function [ 70%]

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

166. webgl模式下对Panel组件旋转时Panel子对象显示错误的BUG! [ 70%]

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

167. Oppo加载.ls资源错误 [ 70%]

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

168. spine动画放大后,遮罩显示不正常 [ 69%]

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

169. 关于游戏结束物理引擎的摧毁问题 [ 69%]

...过        var scene = new GameScenePVP();         Laya.stage.addChild(scene); 添加上本类   GameScenePVP  中  设置了物理世界的初始化 游戏结束  我调用   Laya.stage.removeChild(this);   但是 上面的物理 的刚体 还是存在 本类 求高手 指点...

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

170. 如何加载.lh文件 [ 69%]

...写? 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