U3D添加按鈕相應事件

Unity UI按鈕綁定事件 第一步:經過Hierarchy面板建立button,如圖html 第二步:建立一個腳本名爲TestClick,並定義一個名爲Click的public方法函數 using UnityEngine; using System.Collections; public class TestClick : MonoBehaviour { public void Clic
相關文章
相關標籤/搜索