最近在作Editor下的開發,很好奇在Editor下有沒有Update,因而在網上查了查。。。 code
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEditor; using System.Reflection; [InitializeOnLoad] public class Easy2DeditorUpdate { static Easy2DeditorUpdate() { EditorApplication.update += Update; } static void Update() { Debug.Log(""); } }