在unity里如何获取gComponent?
我直接在unity editor里面新建了UIPanel的对象,然后把自定义的Fairy里的component挂上去。然后我又挂了一个c# script上去,希望能在这个脚本里面处理一些逻辑事件。
但是我不管是从uiPanel,还是从GRoot里,我都无法获取到对应的gComponent。(我尝试过用UIPanel.container::GetChild和GRoot.inst::GetChild方法)
希望谷主大大能一语道破,谢谢~~~
但是我不管是从uiPanel,还是从GRoot里,我都无法获取到对应的gComponent。(我尝试过用UIPanel.container::GetChild和GRoot.inst::GetChild方法)
希望谷主大大能一语道破,谢谢~~~
没有找到相关结果
已邀请:
1 个回复
谷主
赞同来自: