随笔-Unity在编辑器下运行Update

 最近在做Editor下的开发,很好奇在Editor下有没有Update,于是在网上查了查。。。 

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("");
    }
}

猜你喜欢

转载自blog.csdn.net/zhangchong5522/article/details/72539913
今日推荐