private void Awake() { instance = this; string _filePath = new System.Diagnostics.StackTrace(true).GetFrame(0).GetFileName(); excelLoaderPath = _filePath.Remove(0, _filePath.IndexOf("Assets")).Replace("\\", "/").Replace("ExcelLoader_Editor.cs", ""); Init(); }
public static void OnRecompile() { ExcelLoader_Editor[] _editors = (ExcelLoader_Editor[])Resources.FindObjectsOfTypeAll(typeof(ExcelLoader_Editor)); if (_editors.Length != 0) { instance = _editors[0]; instance.RefreshEditor(); } }
public static void Open() { if (instance != null) { DestroyImmediate(instance); } instance = EditorWindow.GetWindow <ExcelLoader_Editor>(); instance.Show(); }
private void OnDestroy() { instance = null; }