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))
pull/120/head
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

@ -1,3 +1,10 @@
# [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](https://github.com/mob-sakai/ParticleEffectForUGUI/commit/0b6dcff5d6356db497532daa0a26804852e8de24))
# [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)

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)

View File

@ -2,7 +2,7 @@
"name": "com.coffee.ui-particle",
"displayName": "UI Particle",
"description": "This plugin provide a component to render particle effect for uGUI.\nThe particle rendering is maskable and sortable, without Camera, RenderTexture or Canvas.",
"version": "3.0.0-preview.25",
"version": "3.0.0-preview.26",
"unity": "2018.2",
"license": "MIT",
"repository": {