Create a gist now

Instantly share code, notes, and snippets.

設定したパラメータが破棄されるテスト
using UnityEngine;
using UnityEditor;
public class EditorWindowTest : EditorWindow
{
public static string message;
[MenuItem("Window/Show")]
static void Init()
{
var window = EditorWindow.CreateInstance<EditorWindowTest> ();
message = "C";
window.Show ();
}
void OnGUI()
{
GUILayout.Label (message);
if (GUILayout.Button ("PUSH")) { message += "#"; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment