3.0.0-preview.25

# [3.0.0-preview.25](https://github.com/mob-sakai/ParticleEffectForUGUI/compare/v3.0.0-preview.24...v3.0.0-preview.25) (2020-09-01)

### Bug Fixes

* removed UIParticle will be saved in prefab mode ([08e2d51](08e2d51c73))
This commit is contained in:
semantic-release-bot
2020-09-01 05:27:06 +00:00
parent 9071798353
commit 94df58276a
3 changed files with 15 additions and 1 deletions

View File

@@ -2,6 +2,7 @@ using UnityEditor;
using UnityEditor.UI;
using UnityEngine;
using System.Collections.Generic;
using UnityEditor.Experimental.SceneManagement;
using UnityEditorInternal;
using UnityEngine.UI;
@@ -150,6 +151,12 @@ namespace Coffee.UIExtensions
var cr = p.canvasRenderer;
DestroyImmediate(p);
DestroyImmediate(cr);
var stage = PrefabStageUtility.GetCurrentPrefabStage();
if (stage != null && stage.scene.isLoaded)
{
PrefabUtility.SaveAsPrefabAsset(stage.prefabContentsRoot, stage.prefabAssetPath);
}
}
bool FixButton(bool show, string text)