3.0.0-preview.26

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

### Bug Fixes

* in Unity 2018.2, PrefabStageUtility is not found ([0b6dcff](0b6dcff5d6))
This commit is contained in:
semantic-release-bot
2020-09-01 07:03:06 +00:00
parent 94df58276a
commit eafc615ea6
3 changed files with 11 additions and 3 deletions

View File

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