creator 对于生成的 tiledtile 节点无法添加点击事件??

如图,经过如下初始化之后:

setAllTiles(width: number, height: number) {
let layer = this.tiledMap.getLayer(“baseLayer”);
for (let currentWidth = 0; currentWidth < width; currentWidth++) {
for (let currentHeight = 0; currentHeight < height; currentHeight++) {
layer.getTiledTileAt(currentWidth, currentHeight, true);
}
}
}

start() {
this.setAllTiles(10, 10);
this.baseLayer.children.forEach(tileNode => tileNode.on(“mousedown”,()=>{
console.log(“hello”);
}));
}

在baselayer节点之下会生成100个瓦片节点,但是start函数中添加事件的代码并不能work,请问是为什么?

图中tiledmap节点挂载了tiledmap组件,下面的baseLayer是该组建根据引用的tmx自动生成的layer节点

原因是生成的 height & width 为0…

后来怎么解决的请问

有后续吗,对瓦片地图上的地块格子进行添加点击事件