RefreshPlugins() public static method

public static RefreshPlugins ( ) : void
return void
    static void  PostImportFunction()
    {
        // Do nothing in batch mode
        string[] arguments = Environment.GetCommandLineArgs();
        if (Array.IndexOf(arguments, "-nographics") != -1)
        {
            return;
        }

        EditorApplication.hierarchyWindowChanged += CheckWwiseGlobalExistance;
        try
        {
            if (!File.Exists(Application.dataPath + Path.DirectorySeparatorChar + WwiseSettings.WwiseSettingsFilename))
            {
                WwiseSetupWizard.Init();
                return;
            }
            else
            {
                WwiseSetupWizard.Settings = WwiseSettings.LoadSettings();
                AkWwiseProjectInfo.GetData();

#if !UNITY_5
                // Check if there are some new platforms to install.
                InstallNewPlatforms();
#else
                if (string.IsNullOrEmpty(AkWwiseProjectInfo.GetData().CurrentPluginConfig))
                {
                    AkWwiseProjectInfo.GetData().CurrentPluginConfig = AkPluginActivator.CONFIG_PROFILE;
                }
                AkPluginActivator.RefreshPlugins();
#endif
            }

            if (!string.IsNullOrEmpty(WwiseSetupWizard.Settings.WwiseProjectPath))
            {
                AkWwisePicker.PopulateTreeview();
                if (AkWwiseProjectInfo.GetData().autoPopulateEnabled)
                {
                    AkWwiseWWUWatcher.GetInstance().StartWWUWatcher();
                }
            }
        }
        catch (Exception e)
        {
            Debug.Log(e.ToString());
        }

        //Check if a WwiseGlobal object exists in the current scene
        CheckWwiseGlobalExistance();

        // If demo scene, remove file that should only be there on import
        string filename = Path.Combine(Path.Combine(Path.Combine(Path.Combine(Application.dataPath, "Wwise"), "Editor"), "WwiseSetupWizard"), "AkWwisePopPicker.cs");
        if (File.Exists(filename))
        {
            EditorApplication.delayCall += DeletePopPicker;
        }
    }
Exemplo n.º 2
0
    private static void RefreshPlugins()
    {
        if (string.IsNullOrEmpty(AkWwiseProjectInfo.GetData().CurrentPluginConfig))
        {
            AkWwiseProjectInfo.GetData().CurrentPluginConfig = AkPluginActivator.CONFIG_PROFILE;
        }

        AkPluginActivator.RefreshPlugins();
    }
Exemplo n.º 3
0
    static void RefreshPlugins()
    {
#if !UNITY_5
        // Check if there are some new platforms to install.
        InstallNewPlatforms();
#else
        if (string.IsNullOrEmpty(AkWwiseProjectInfo.GetData().CurrentPluginConfig))
        {
            AkWwiseProjectInfo.GetData().CurrentPluginConfig = AkPluginActivator.CONFIG_PROFILE;
        }
        AkPluginActivator.RefreshPlugins();
#endif
    }
Exemplo n.º 4
0
    static void RefreshCallback()
    {
        PostImportFunction();
        if (File.Exists(Path.Combine(Application.dataPath, WwiseSettings.WwiseSettingsFilename)))
        {
            AkPluginActivator.Update();
            AkPluginActivator.RefreshPlugins();

#if UNITY_5
            // Check if platform is supported and installed
            string Msg;
            if (!CheckPlatform(out Msg))
            {
                EditorUtility.DisplayDialog("Warning", Msg, "OK");
            }
#endif
        }
    }
Exemplo n.º 5
0
    private static void RefreshCallback()
    {
        PostImportFunction();
        if (File.Exists(Path.Combine(Application.dataPath, WwiseSettings.WwiseSettingsFilename)))
        {
            AkPluginActivator.Update();
            AkPluginActivator.RefreshPlugins();

            // Check if platform is supported and installed. PluginImporter might contain
            // erroneous data when application is compiling or updating, so skip this if
            // that is the case.
            if (!EditorApplication.isCompiling && !EditorApplication.isUpdating)
            {
                string Msg;
                if (!CheckPlatform(out Msg))
                {
                    EditorUtility.DisplayDialog("Warning", Msg, "OK");
                }
            }
        }
    }