[LayaAir 2.0]TieldMap is not counstructer

代码如下:
//创建TiledMap实例
        this._tMap = new TiledMap();
        //创建Rectangle实例,视口区域
        var viewRect:Laya.Rectangle = new Laya.Rectangle();
        console.log(this._tMap);
        //创建TiledMap地图
        this._tMap.createMap("../bin/map/orthogonal-outside.json",viewRect,Laya.Handler.create(this,this.onComplete));
 

QQ截图20200815100933.png


 
已邀请:

Laya_z

赞同来自:

使用TiledMap,需要引用tiledmap类库,IDE面板F9,类库管理,勾选上laya.tiledmap.js就好了

要回复问题请先

商务合作
商务合作