阅读背景:

通过Button的OnClick来获取到当前点击的是哪个Button

来源:互联网 

btns是一个Button[ ]

 EventSystem.current.currentSelectedGameObject可以获取到当前点击的按钮的GameObject EventSystem.current.curr




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: