private void OnEnable() { _graph = new DependencyViewerGraph(); _graphDrawer = new DependencyViewerGraphDrawer(_graph); _settings = DependencyViewerSettings.Create(); _settings.Load(); _settingsOverlay = new DependencyViewerSettingsOverlay(_settings); _resolver = new DependencyResolver(_graph, _settings); _statusBar = new DependencyViewerStatusBar(); _settings.onSettingsChanged += OnSettingsChanged; _graphDrawer.requestViewDependency += ViewDependencies; if (refTarget != null) { BuildGraph(); } // If the active object is already a DependencyViewerSettings, // it probably means that some old settings are actually inspected. // Update the active object to now use the new settings object. if (Selection.activeObject is DependencyViewerSettings) { Selection.activeObject = _settings; } }
public DependencyResolver(DependencyViewerGraph graph, DependencyViewerSettings settings) { _graph = graph; _settings = settings; _referencesResolver = new DependencyResolver_References(graph, settings); _dependenciesResolver = new DependencyResolver_Dependencies(settings); }
public static DependencyViewerSettings Create() { DependencyViewerSettings settings = ScriptableObject.CreateInstance <DependencyViewerSettings>(); settings.hideFlags = HideFlags.DontSave | HideFlags.HideInHierarchy; return(settings); }
public DependencyResolver_References(DependencyViewerGraph graph, DependencyViewerSettings settings) { _graph = graph; _settings = settings; }
public DependencyViewerSettingsOverlay(DependencyViewerSettings settings) { _settings = settings; }
public DependencyResolver_Dependencies(DependencyViewerSettings settings) { _settings = settings; }