如果有不明白的加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);
}