如果有不明白的加QQ群:636926481
public void ClickEvent1()
{
//通过 UnityEngine.EventSystems的底层来获取到当前点击的对象
var button = UnityEngine.EventSystems.EventSystem.current.currentSelectedGameObject;
Debug.Log(button.name);
}
如果有不明白的加QQ群:636926481
public void ClickEvent1()
{
//通过 UnityEngine.EventSystems的底层来获取到当前点击的对象
var button = UnityEngine.EventSystems.EventSystem.current.currentSelectedGameObject;
Debug.Log(button.name);
}