隨筆-Unity在編輯器模式下運行Update

最近在作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("");
    }



}
相關文章
相關標籤/搜索