unity3d canvas button 代码添加鼠标单击/触摸单击触发事件

Button btnClose = goCloseButton.GetComponent<Button>();
            btnClose.onClick.AddListener(()=>DestroyControl("boxContentPanel"));


Logo

电影级数字人,免显卡端渲染SDK,十行代码即可调用,工业级demo免费开源下载!

更多推荐