public void BtClick()
{
var button = UnityEngine.EventSystems.EventSystem.current.currentSelectedGameObject;
Debug.Log(button.name);
string str = button.name;
str = str.Substring(0, str.LastIndexOf("_"));
}
unity点击button获取指定符号前字符
最新推荐文章于 2023-09-09 20:45:57 发布