コード例 #1
0
        private void OnGUI()
        {
            if (GUILayout.Button("Scan the project"))
            {
                DependencyGraphManager.ScanProject();
                DependencyGraphIOUtility.Save(DependencyGraphManager.AssetCollection.Values.ToList());
            }

            DependencyGraphAssetDrawer.DrawGraphForActiveObject();
        }
コード例 #2
0
        private static void Update()
        {
            if (!DependencyGraphManager.IsDirty)
            {
                return;
            }

            AssetDatabase.SaveAssets();
            DependencyGraphManager.Update();
            DependencyGraphIOUtility.Save(DependencyGraphManager.AssetCollection.Values.ToList());
        }