Пример #1
0
 // 片方を閉じる
 void OnDestroy()
 {
     if (selectionWindow != null)
     {
         selectionWindow.Close();
     }
     selectionWindow = null;
 }
Пример #2
0
        void OnEnable()
        {
            // .asmdefをすべて取得
            var asmdefs = CompilationPipeline.GetAssemblies();

            // viewの作成
            graphView = new AsmdefGraphView(asmdefs)
            {
                style = { flexGrow = 1 }
            };
            rootVisualElement.Add(graphView);

            // 選択ウィンドウも作成
            selectionWindow = GetWindow <AsmdefSelectionView>("Asmdef Selection");
            selectionWindow.SetAsmdef(asmdefs, this);
        }