예제 #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");
 }