private void OnEnable() { m_Instance = this; UpdateAssetPath(); Selection.selectionChanged -= UpdateAssetPath; Selection.selectionChanged += UpdateAssetPath; }
private void OnDisable() { Selection.selectionChanged -= UpdateAssetPath; m_Instance = null; }
public static void ShowWindow() { m_Instance = GetWindow <CodeGeneratorWindow>("Code Generator"); }