private void OnEnable() { //Load window position position = WindowPrefs.LoadPosition(titleContent.text); LoadRootFolderPath(); InitCreators(); UpdateRootRelativePath(); }
private void OnDisable() { WindowPrefs.SavePosition(titleContent.text, position); }
public static void Init() { var window = GetWindow <TemplateCreatorWindow>("Class Creator"); WindowPrefs.SavePosition(window.titleContent.text, window.position); }