コード例 #1
0
        private static void OpenSettings()
        {
            var settings = ScriptableManager.Get <SettingsScriptable>();

            EditorUtility.FocusProjectWindow();
            Selection.activeObject = settings;
        }
コード例 #2
0
        private static void OnCompilationFinished(string assemblyPath, CompilerMessage[] _)
        {
            var settings = ScriptableManager.Get <SettingsScriptable>();

            if (settings.Enabled && settings.ShouldAssemblyBeWeaved(assemblyPath))
            {
                WeaveAssembly(assemblyPath);
            }
        }
コード例 #3
0
 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();
     }
 }