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

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

1. 【求助】关于Cannot read property 'visible' of undefined问题 [ 100%]

... at RenderSprite3D.__proto._childs (file:///D:/Projects/Study/three/bin/h5/Main.max.js:6529:29) at Sprite.__proto.render (file:///D:/Projects/Study/three/bin/h5/Main.max.js:21868:42) at RenderSprite3D.__proto._childs (file:///D:/Projects/Study/three/bin/h5/Main.max.js:6529:45) at RenderSprite3D.__pr...

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

2. 使用 addChild 加载界面后,绑定事件报错 [ 94%]

...rtScene && Laya.Scene.open(GameConfig.startScene);         Main.gameStart = new GameStart(); Laya.stage.addChild(Main.gameStart); }   在官方示例 Main.ts 中,使用Laya.stage.addChild(Main.gameStart); 加载场景后报上面图片的错误 GameStart 类如下: export defaul...

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

3. 一个很奇怪的问题,不知道其他同学遇到没有 [ 94%]

...的工程,然后删掉里面默认生成的程序入口文件,新建一个main.ts,输入以下代码: class main{ constructor(){ Laya.init(600,400); console.log(common.num); } } new main();   这里面访问了另外一个文件common.ts中定义的类: class common{ constructor(){ } public static ...

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

4. 继承Scene没有onEnable [ 93%]

...      Laya.Scene.root.addChild(t);     } } //激活启动类 new Main();  class tt extends Laya.Node{     constructor(){         super();     }     public onAwake():void{         console.log(1111);     } }   2.继承Sprite 执行后会有onAwake     ...

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

5. 分包项目, 加载js时报错 [ 91%]

... read property 'Box' of undefined     at eval (eval at __proto.complete (Main.max.js:308), <anonymous>:5:17)     at eval (eval at __proto.complete (Main.max.js:308), <anonymous>:26:3)     at eval (<anonymous>)     at Main.__proto.complete (Main.max.js:308)     at EventHan...

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

6. unity 导出模型 [ 91%]

... 导出后一个文件夹Assets,一个文件为 .lh ,模型名称为 Main.fbx。 ".lh"没有名称导致加载模型找不到文件,我试图修改Main.lh同样错误,今天才下载的最新版本也一样! 附件 : --> 2017-05-15 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没...

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

7. Maximum call stack size exceeded [ 89%]

...ya.core.js:13871)     at new Scene (laya.core.js:23721)     at new GameMain (bundle.js:6)     at Function.getCompInstance (laya.core.js:21214)     at Function.createComp (laya.core.js:21081)     at Function.createComp (laya.core.js:21111)     at Function.createByData (laya.core.js:21034)...

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

8. 如何在游戏入口处获取对象的子对象 [ 89%]

...} console.log(this.map) return loadMap; })(Sprite);**游戏主入口** var Main = (function (){ (function Main(){ Laya.init(448,448); var map1 = new loadMap(); map1.init(); map1.showMap("3"); map1.getLayer(); console.log(map1.num); console.log(map1); console.log(map1.pass); console.log(map1.getLayer...

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

9. 2.0版本的子域还需要初始化MiniAdpter吗? [ 88%]

...报错 Uncaught TypeError: Cannot read property 'init' of undefined at new Main (Main.ts:11) at Object.1../views/Rank (layaMaxUI.ts:1) at o (_prelude.js:11) at r (_prelude.js:11) at _prelude.js:11 at require (WAGameSubContext.js:3) at WAGameSubContext.js:3 at index_1.js:15 at require (WAGameSubConte...

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

10. 使用typescript开发项目,解决文件引用顺序问题 [ 87%]

...Tag--> <!--jsfile--endTag-->在index.html里初始化Laya,因为main.js的引用文件会优先执行,所以Laya.init不能写在main.js里面 type="module"是chrome61的新功能,可以使用es6的import来加载模块<script> Laya.init(600,400); </script> <script type...

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