【萌新请教】装载器装载组件后,如何找到该组件呀?

this.mapImage.url = "ui://WorldMap/Map" + mapID;
GComponent temp = this.mapImage.asCom;
GComponent tMap = temp.GetChild("Map" + mapID).asCom;
 我是用下面的代码,但是一直在最后一条报错:
NullReferenceException: Object reference not set to an instance of an object
请教一下该怎么办呀?
 
已邀请:

fengjing

赞同来自:

Gloader.component就是加的组件

要回复问题请先登录注册