Unity3D基礎知識(一) MonoBehaviour腳本內置函數執行順序測試

問題: 在Unity3D項目中常常會遇到不知道應該把初始化代碼寫在Awake(), Start()仍是OnEnable()函數中. 測試: 直接上代碼 using UnityEngine; public class test_MonoBehaviour : MonoBehaviour { public static string pressKey = string.Empty;
相關文章
相關標籤/搜索