private void OnUpgrade(string oldVersionString) { Version newVersion = new Version(VERSION); Version oldVersion = new Version(oldVersionString); //Upgrade locking valuesd from Animated property to tags if (newVersion >= "2.11.0" && oldVersion > "2.0" && oldVersion < "2.11.0") { ShaderOptimizer.UpgradeAnimatedPropertiesToTagsOnAllMaterials(); } }
static void MenuUpgradeAnimatedPropertiesToTagsOnAllMaterials() { ShaderOptimizer.UpgradeAnimatedPropertiesToTagsOnAllMaterials(); }