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

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

1. laya 2.0 可以支持 typescript namespace 吗 [ 100%]

...践中我就没办法用上namespace。module关键字倒是可以用(要import)。 其实作为游戏开发者,laya 1.7 的全局namespace 更好用一些,import有点烦。   是不是tsify 搞的?我不懂这些东西。 2018-11-05 添加评论 免费帖 --> 分享 微博 QZONE 微信...

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

2. import如何from到服务器端的文件? [ 92%]

import如何from到服务器端的文件? 代码与报错如下:,是需要修改配置文件吗?怎么操作,求大神指点 import io from "http://192.168.8.58:80/socket.io/socket.io.js";   Error: Cannot find module 'http://192.168.8.58:80/socket.io/socket.io.js' from 'C:\Angus\newFolde...

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

3. 发现bug,update大问题!!!!!!!!! 2.13版本 [ 82%]

发现bug,update大问题!!!!!!!!! 2.13版本 import { TableMgr } from "../common/table/TableMgr"; import { BaseWin } from "../common/windows/BaseWin"; import Const from "../Const"; import UIMain from "../ui/Game/UIMain";  export default class GameWnd extends BaseWin {     pu...

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

4. 龙骨动画的监听回调,有时能回调,有时不能回调 [ 79%]

...: 与内容相关的链接 提交 1 个回复 Veni vidi vici 赞同来自: import GameConfig from "../../../GameConfig"; import { SingleBase } from "../../../lib/base/SingleBase"; import DdzFarmersAni from "./DdzFarmersAni";  export default class DdzLandlordAni extends SingleBase{   private mFacto...

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

5. ts import问题 [ 78%]

ts import问题 ts 不支持这样的import写法吗 import { LoadingPanel } from './game/loading/LoadingPanel'; 使用会报错 “Uncaught ReferenceError: exports is not defined” 2018-08-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...

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

6. Laya.timer.loop() 报错 Cannot read property 'loop' of null [ 78%]

Laya.timer.loop() 报错 Cannot read property 'loop' of null import { Image } from "laya/ui/Image"; // import { List } from "laya/ui/List"; import { Laya } from "laya"; export default class test_move extends Image{ // /** @prop {name:move_img, tips:"用来移动的箭头", type:Image} */ // public ...

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

7. Layaair scene怎么不会自动生成代码了? [ 77%]

....0还可以这样写: namespace game{    export class Define{    } } import Define =game.Define;   LayaAir2.0导入无效   2019-05-27 0 0 分享 微博 QZONE 微信 156*****215 赞同来自: 需要这样写成这样: import {Define} from "./game/Define" ? 2019-05-27 0 0 分享 微博 QZ...

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

8. 给模型动态添加脚本报错 [ 76%]

...模型添加一个脚本 一直报错怎么搞?   代码片段:   import goldItemNode from "../prefabs/goldItemNode";    var sp = Laya.Loader.getRes("res/res3D/prefabsModel/hanbao.lh");                 goldNode = this.scene_3d.addChild(sp);              ...

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

9. 2.0 Beta3版本中,runtime脚本的的问题 [ 76%]

...atically generated by LayaAirIDE, please do not make any modifications. */ import View=Laya.View; import Dialog=Laya.Dialog; import Scene=Laya.Scene; export module ui { export class BGPageUI extends View { constructor(){ super()} createChildren():void { super.createChildren(); this.loadScene("BGPage...

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

10. 用js语言开发,怎样引入同级下的js文件? [ 73%]

...参考模块的概念,你可以main.js   export xxx,然后再game.js   import something from './game.js'  (具体语法百度有) 2018-05-24 0 1 分享 微博 QZONE 微信 龙印 赞同来自: 微信小游戏---引入第三方库的方法 2019-02-25 0 0 分享 微博 QZONE 微信 为什么被...

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