first commit
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
namespace Unity.VisualScripting
|
||||
{
|
||||
[Plugin(BoltFlow.ID)]
|
||||
internal class Migration_1_0_2_to_1_0_3 : PluginMigration
|
||||
{
|
||||
public Migration_1_0_2_to_1_0_3(Plugin plugin) : base(plugin) { }
|
||||
|
||||
public override SemanticVersion @from => "1.0.2";
|
||||
public override SemanticVersion to => "1.0.3";
|
||||
|
||||
public override void Run()
|
||||
{
|
||||
RequireAction("Run the new unit options wizard from: \nTools > Bolt > Unit Options Wizard..." +
|
||||
"\n\nYou will need to run it every time you change your codebase. " +
|
||||
"To skip the wizard and keep the same settings, use: \nTools > Bolt > Update Unit Options");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 895428f746d8e4997a1230d807360b94
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,16 @@
|
||||
namespace Unity.VisualScripting
|
||||
{
|
||||
[Plugin(BoltFlow.ID)]
|
||||
internal class Migration_1_1_1_to_1_1_2 : PluginMigration
|
||||
{
|
||||
public Migration_1_1_1_to_1_1_2(Plugin plugin) : base(plugin) { }
|
||||
|
||||
public override SemanticVersion @from => "1.1.1";
|
||||
public override SemanticVersion to => "1.1.2";
|
||||
|
||||
public override void Run()
|
||||
{
|
||||
// RequireAction("Update your unit options from:\nTools > Bolt > Update Unit Options");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c3d93833b89dc446e80bc99d2a98edbb
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,16 @@
|
||||
namespace Unity.VisualScripting
|
||||
{
|
||||
[Plugin(BoltFlow.ID)]
|
||||
internal class Migration_1_1_2_to_1_1_3 : PluginMigration
|
||||
{
|
||||
public Migration_1_1_2_to_1_1_3(Plugin plugin) : base(plugin) { }
|
||||
|
||||
public override SemanticVersion @from => "1.1.2";
|
||||
public override SemanticVersion to => "1.1.3";
|
||||
|
||||
public override void Run()
|
||||
{
|
||||
//UnitBase.CacheStaticOptions();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4ae4d3f2430124e44bd5968e7d4994cf
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,16 @@
|
||||
namespace Unity.VisualScripting
|
||||
{
|
||||
[Plugin(BoltFlow.ID)]
|
||||
internal class Migration_1_1_3_to_1_2_0 : PluginMigration
|
||||
{
|
||||
public Migration_1_1_3_to_1_2_0(Plugin plugin) : base(plugin) { }
|
||||
|
||||
public override SemanticVersion @from => "1.1.3";
|
||||
public override SemanticVersion to => "1.2.0";
|
||||
|
||||
public override void Run()
|
||||
{
|
||||
//UnitBase.Build();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 689f9551b93de4e62acca93bee8b6df5
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,16 @@
|
||||
namespace Unity.VisualScripting
|
||||
{
|
||||
[Plugin(BoltFlow.ID)]
|
||||
internal class Migration_1_2_0_to_1_2_2 : PluginMigration
|
||||
{
|
||||
public Migration_1_2_0_to_1_2_2(Plugin plugin) : base(plugin) { }
|
||||
|
||||
public override SemanticVersion @from => "1.2.0";
|
||||
public override SemanticVersion to => "1.2.2";
|
||||
|
||||
public override void Run()
|
||||
{
|
||||
UnitBase.Rebuild();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c87b8c463f7214cd88f60ae3f4ab4d4f
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,20 @@
|
||||
namespace Unity.VisualScripting
|
||||
{
|
||||
[Plugin(BoltFlow.ID)]
|
||||
internal class Migration_1_2_4_to_1_3_0 : PluginMigration
|
||||
{
|
||||
public Migration_1_2_4_to_1_3_0(Plugin plugin) : base(plugin) { }
|
||||
|
||||
public override SemanticVersion @from => "1.2.4";
|
||||
public override SemanticVersion to => "1.3.0";
|
||||
|
||||
public override void Run()
|
||||
{
|
||||
ScriptReferenceResolver.Run();
|
||||
|
||||
UnitBase.Rebuild();
|
||||
|
||||
RequireAction("Version 1.3 is a major refactor that changed most of the folder structure. Some manual actions may be required. See: http://bit.do/bolt-1-3");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 67b4b452425e74ecbb80e16f8f3b7fd7
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,16 @@
|
||||
namespace Unity.VisualScripting
|
||||
{
|
||||
[Plugin(BoltFlow.ID)]
|
||||
internal class Migration_1_3_0_to_1_4_0 : PluginMigration
|
||||
{
|
||||
public Migration_1_3_0_to_1_4_0(Plugin plugin) : base(plugin) { }
|
||||
|
||||
public override SemanticVersion @from => "1.3.0";
|
||||
public override SemanticVersion to => "1.4.0";
|
||||
|
||||
public override void Run()
|
||||
{
|
||||
UnitBase.Rebuild();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 47dce94c9e7904b6fbac4e3f2f8a4949
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,64 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Unity.VisualScripting
|
||||
{
|
||||
[Plugin(BoltFlow.ID)]
|
||||
internal class Migration_1_5_1_to_1_5_2 : PluginMigration
|
||||
{
|
||||
internal Migration_1_5_1_to_1_5_2(Plugin plugin) : base(plugin)
|
||||
{
|
||||
order = 1;
|
||||
}
|
||||
|
||||
public override SemanticVersion @from => "1.5.1";
|
||||
public override SemanticVersion to => "1.5.2";
|
||||
|
||||
public override void Run()
|
||||
{
|
||||
try
|
||||
{
|
||||
MigrateProjectSettings();
|
||||
}
|
||||
#pragma warning disable 168
|
||||
catch (Exception e)
|
||||
#pragma warning restore 168
|
||||
{
|
||||
Debug.LogWarning("There was a problem migrating your Visual Scripting project settings. Be sure to check them in Edit -> Project Settings -> Visual Scripting");
|
||||
#if VISUAL_SCRIPT_DEBUG_MIGRATION
|
||||
Debug.LogError(e);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
private static void MigrateProjectSettings()
|
||||
{
|
||||
BoltFlow.Configuration.LoadOrCreateProjectSettingsAsset();
|
||||
|
||||
var legacyProjectSettingsAsset = MigrationUtility_1_5_1_to_1_5_2.GetLegacyProjectSettingsAsset("VisualScripting.Flow");
|
||||
if (legacyProjectSettingsAsset != null)
|
||||
{
|
||||
BoltFlow.Configuration.projectSettingsAsset.Merge(legacyProjectSettingsAsset);
|
||||
}
|
||||
|
||||
BoltFlow.Configuration.SaveProjectSettingsAsset(true);
|
||||
BoltFlow.Configuration.ResetProjectSettingsMetadata();
|
||||
}
|
||||
}
|
||||
|
||||
[Plugin(BoltFlow.ID)]
|
||||
internal class DeprecatedSavedVersionLoader_1_5_1 : PluginDeprecatedSavedVersionLoader
|
||||
{
|
||||
internal DeprecatedSavedVersionLoader_1_5_1(Plugin plugin) : base(plugin) { }
|
||||
|
||||
public override SemanticVersion @from => "1.5.1";
|
||||
|
||||
public override bool Run(out SemanticVersion savedVersion)
|
||||
{
|
||||
var manuallyParsedVersion = MigrationUtility_1_5_1_to_1_5_2.TryManualParseSavedVersion("VisualScripting.Flow");
|
||||
savedVersion = manuallyParsedVersion;
|
||||
|
||||
return savedVersion != "0.0.0";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2c693a7ac04049709a5412015f4be985
|
||||
timeCreated: 1618518936
|
||||
@@ -0,0 +1,51 @@
|
||||
using System;
|
||||
|
||||
namespace Unity.VisualScripting
|
||||
{
|
||||
[Plugin(BoltFlow.ID)]
|
||||
internal class Migration_1_6_to_1_7 : PluginMigration
|
||||
{
|
||||
internal Migration_1_6_to_1_7(Plugin plugin) : base(plugin)
|
||||
{
|
||||
order = 2;
|
||||
}
|
||||
|
||||
public override SemanticVersion @from => "1.6.1000";
|
||||
public override SemanticVersion to => "1.7.0-pre.0";
|
||||
|
||||
public override void Run()
|
||||
{
|
||||
// Need to reset our project settings metadata list to point to the new project settings asset and
|
||||
// underlying dictionary. That way when it gets saved we don't overwrite the files data
|
||||
BoltFlow.Configuration.LoadProjectSettings();
|
||||
|
||||
UnitBase.Rebuild();
|
||||
}
|
||||
}
|
||||
|
||||
[Plugin(BoltFlow.ID)]
|
||||
internal class DeprecatedSavedVersionLoader_1_6_1 : PluginDeprecatedSavedVersionLoader
|
||||
{
|
||||
public DeprecatedSavedVersionLoader_1_6_1(Plugin plugin) : base(plugin) { }
|
||||
|
||||
public override SemanticVersion @from => "1.6.1";
|
||||
|
||||
public override bool Run(out SemanticVersion savedVersion)
|
||||
{
|
||||
savedVersion = new SemanticVersion();
|
||||
try
|
||||
{
|
||||
var legacyProjectSettingsAsset = MigrationUtility_1_6_to_1_7.GetLegacyProjectSettingsAsset("VisualScripting.Flow");
|
||||
if (legacyProjectSettingsAsset == null)
|
||||
return false;
|
||||
|
||||
savedVersion = (SemanticVersion)legacyProjectSettingsAsset["savedVersion"];
|
||||
return true;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 532cc1a3ad6b4fc9a789c713aa2314db
|
||||
timeCreated: 1618942961
|
||||
@@ -0,0 +1,84 @@
|
||||
using System;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Unity.VisualScripting
|
||||
{
|
||||
[Plugin(BoltFlow.ID)]
|
||||
internal class Migration_Asset_to_Package : PluginMigration
|
||||
{
|
||||
public Migration_Asset_to_Package(Plugin plugin) : base(plugin)
|
||||
{
|
||||
order = 2;
|
||||
}
|
||||
|
||||
public override SemanticVersion @from => "1.4.1000";
|
||||
public override SemanticVersion to => "1.5.0-pre.0";
|
||||
|
||||
public override void Run()
|
||||
{
|
||||
plugin.configuration.Initialize();
|
||||
|
||||
try
|
||||
{
|
||||
MigrateProjectSettings();
|
||||
}
|
||||
#pragma warning disable 168
|
||||
catch (Exception e)
|
||||
#pragma warning restore 168
|
||||
{
|
||||
Debug.LogWarning("There was a problem migrating your Visual Scripting project settings. Be sure to check them in Edit -> Project Settings -> Visual Scripting");
|
||||
#if VISUAL_SCRIPT_DEBUG_MIGRATION
|
||||
Debug.LogError(e);
|
||||
#endif
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
MigrationUtility_Asset_to_Package.MigrateEditorPreferences(this.plugin);
|
||||
}
|
||||
#pragma warning disable 168
|
||||
catch (Exception e)
|
||||
#pragma warning restore 168
|
||||
{
|
||||
Debug.LogWarning("There was a problem migrating your Visual Scripting editor preferences. Be sure to check them in Edit -> Preferences -> Visual Scripting");
|
||||
#if VISUAL_SCRIPT_DEBUG_MIGRATION
|
||||
Debug.LogError(e);
|
||||
#endif
|
||||
}
|
||||
|
||||
UnitBase.Rebuild();
|
||||
}
|
||||
|
||||
private static void MigrateProjectSettings()
|
||||
{
|
||||
// Bolt.Flow -> VisualScripting.Flow
|
||||
BoltFlow.Configuration.LoadOrCreateProjectSettingsAsset();
|
||||
|
||||
var legacyProjectSettingsAsset = MigrationUtility_Asset_to_Package.GetLegacyProjectSettingsAsset("Bolt.Flow");
|
||||
if (legacyProjectSettingsAsset != null)
|
||||
{
|
||||
BoltFlow.Configuration.projectSettingsAsset.Merge(legacyProjectSettingsAsset);
|
||||
}
|
||||
|
||||
BoltFlow.Configuration.SaveProjectSettingsAsset(true);
|
||||
BoltFlow.Configuration.ResetProjectSettingsMetadata();
|
||||
}
|
||||
}
|
||||
|
||||
[Plugin(BoltFlow.ID)]
|
||||
internal class DeprecatedSavedVersionLoader_Bolt_AssetStore : PluginDeprecatedSavedVersionLoader
|
||||
{
|
||||
public DeprecatedSavedVersionLoader_Bolt_AssetStore(Plugin plugin) : base(plugin) { }
|
||||
|
||||
public override SemanticVersion @from => "1.4.13";
|
||||
|
||||
public override bool Run(out SemanticVersion savedVersion)
|
||||
{
|
||||
var manuallyParsedVersion = MigrationUtility_Asset_to_Package.TryManualParseSavedVersion("Bolt.Flow");
|
||||
savedVersion = manuallyParsedVersion;
|
||||
|
||||
return savedVersion != "0.0.0";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8c55736a7972cd241949ca6fc57125e7
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user