private static void MigrateProjectSettings()
        {
            // Bolt.State -> VisualScripting.State
            BoltState.Configuration.LoadOrCreateProjectSettingsAsset();

            var legacyProjectSettingsAsset = MigrationUtility_Asset_to_Package.GetLegacyProjectSettingsAsset("Bolt.State");

            if (legacyProjectSettingsAsset != null)
            {
                BoltState.Configuration.projectSettingsAsset.Merge(legacyProjectSettingsAsset);
            }

            BoltState.Configuration.SaveProjectSettingsAsset(true);
            BoltState.Configuration.ResetProjectSettingsMetadata();
        }
Exemple #2
0
        private static void MigrateProjectSettings()
        {
            // Merging Ludiq.Graphs, Ludiq.Core and Bolt.Core
            var legacyProjectSettingPluginIds = new string[]
            { "Ludiq.Graphs", "Ludiq.Core", "Bolt.Core" };

            BoltCore.Configuration.LoadOrCreateProjectSettingsAsset();

            foreach (var pluginId in legacyProjectSettingPluginIds)
            {
                var legacyProjectSettingsAsset = MigrationUtility_Asset_to_Package.GetLegacyProjectSettingsAsset(pluginId);
                if (legacyProjectSettingsAsset != null)
                {
                    BoltCore.Configuration.projectSettingsAsset.Merge(legacyProjectSettingsAsset);
                }
            }

            BoltCore.Configuration.SaveProjectSettingsAsset(true);
            BoltCore.Configuration.ResetProjectSettingsMetadata();
        }