private static void OpenWindow() { AtlasUI window = GetWindow <AtlasUI>(); window.titleContent = new GUIContent("World Atlas"); i = window; }
// Use this for initialization private void OnEnable() { levels = new List <AtlasLevelView>(); nodeStyle = new GUIStyle(); nodeStyle.normal.background = EditorGUIUtility.Load("builtin skins/darkskin/images/node1.png") as Texture2D; nodeStyle.border = new RectOffset(12, 12, 12, 12); i = this; }