美文网首页
Uncaught TypeError: *** is not a

Uncaught TypeError: *** is not a

作者: kuxingseng686 | 来源:发表于2020-07-28 16:31 被阅读0次
image.png
想测试Tiled+Laya.TiledMap,结果遇到了Uncaught TypeError: Laya.TiledMap is not a constructor
之后发现是没有导入对应的tilemap引擎库的问题
如果实在在LayaAir IDE 中,直接F9,选取类库设置,勾选没有加载的引擎库即可
image.png

如果是用webStorm开发,找到index.js,,加上 loadLib("libs/laya.tiledmap.js") 即可

image.png

相关文章

网友评论

      本文标题:Uncaught TypeError: *** is not a

      本文链接:https://www.haomeiwen.com/subject/zzofrktx.html