protected override void DoUpdate() { var recipeBase = (UMARecipeBase)target; Undo.RecordObject(recipeBase, "Recipe Editor"); recipeBase.Save(_recipe, UMAContext.FindInstance()); AssetDatabase.ImportAsset(AssetDatabase.GetAssetPath(recipeBase)); _rebuildOnLayout = true; _needsUpdate = false; if (PowerToolsIntegration.HasPreview(recipeBase)) { PowerToolsIntegration.Refresh(recipeBase); } //else //{ // PowerToolsIntegration.Show(recipeBase); //} }
protected override void DoUpdate() { var recipeBase = (UMARecipeBase)target; recipeBase.Save(_recipe, UMAContextBase.Instance); EditorUtility.SetDirty(recipeBase); AssetDatabase.SaveAssets(); // AssetDatabase.ImportAsset(AssetDatabase.GetAssetPath(recipeBase)); _rebuildOnLayout = true; _needsUpdate = false; if (PowerToolsIntegration.HasPreview(recipeBase)) { PowerToolsIntegration.Refresh(recipeBase); } //else //{ // PowerToolsIntegration.Show(recipeBase); //} }