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