@vostro1400 写道:
properties: {
roadPrefabs : {
default:[],
type:[cc.Prefab],
},
}var tPrefab = cc.instantiate(this.roadPrefabs[4]);
var tTiledData = tPrefab.getComponent(cc.TiledMap);tTiledData.getObjectGroup("groupName"); //null
tTiledData.getLayer("layerName"); //null请问如何获取图层和对象层啊? 上边的2个获取方法全是null.
帖子: 1
参与者: 1