Created
January 31, 2017 14:13
-
-
Save tsubaki/e8ef212d8cf8c8dddd0c0bdcce9fa44d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEditor; | |
public class EditorWindowTest : EditorWindow | |
{ | |
public string message; // messageスタティックやめるってよ | |
[MenuItem("Window/Show")] | |
static void Init() | |
{ | |
var window = EditorWindow.CreateInstance<EditorWindowTest> (); | |
window.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