private static void OpenSettings() { var settings = ScriptableManager.Get <SettingsScriptable>(); EditorUtility.FocusProjectWindow(); Selection.activeObject = settings; }
private static void OnCompilationFinished(string assemblyPath, CompilerMessage[] _) { var settings = ScriptableManager.Get <SettingsScriptable>(); if (settings.Enabled && settings.ShouldAssemblyBeWeaved(assemblyPath)) { WeaveAssembly(assemblyPath); } }
private static void WeaveAssemblies() { if (ScriptableManager.Get <SettingsScriptable>().Enabled == false) { EditorUtility.DisplayDialog("DataBindings are Disabled", "DataBindings are currently disabled. Please enable them in the settings: DataBindings -> Settings -> Enabled", "Ok"); } else { InternalUnityApi.DirtyAllScripts(); } }