using UnityEngine; using System.Collections; using UnityEditor; public class TestEditor : EditorWindow { [MenuItem("Test/Go")] static void Go() { GetWindow<TestEditor> (); } void OnGUI() { EditorGUILayout.LabelField ("Test"); if (GUILayout.Button ("Push")) { Debug.Log ("Pushed"); IEnumerator t = Test (); while (t.MoveNext ()) { Debug.Log ("Current: " + t.Current); } } } public IEnumerator Test() {
