3.0.0-preview.35

# [3.0.0-preview.35](https://github.com/mob-sakai/ParticleEffectForUGUI/compare/v3.0.0-preview.34...v3.0.0-preview.35) (2020-09-27)

### Bug Fixes

* an error happens during loading scene in editor ([ab9d9aa](ab9d9aa7b3)), closes [#101](https://github.com/mob-sakai/ParticleEffectForUGUI/issues/101)
pull/120/head
semantic-release-bot 2020-09-27 06:58:09 +00:00
parent bda77ab039
commit 94ae9d2016
3 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,10 @@
# [3.0.0-preview.35](https://github.com/mob-sakai/ParticleEffectForUGUI/compare/v3.0.0-preview.34...v3.0.0-preview.35) (2020-09-27)
### Bug Fixes
* an error happens during loading scene in editor ([ab9d9aa](https://github.com/mob-sakai/ParticleEffectForUGUI/commit/ab9d9aa7b3afcdbdda00004f7af3fd4827aaea54)), closes [#101](https://github.com/mob-sakai/ParticleEffectForUGUI/issues/101)
# [3.0.0-preview.34](https://github.com/mob-sakai/ParticleEffectForUGUI/compare/v3.0.0-preview.33...v3.0.0-preview.34) (2020-09-15)

View File

@ -411,6 +411,7 @@ namespace Coffee.UIExtensions
#if UNITY_EDITOR
void ISerializationCallbackReceiver.OnBeforeSerialize()
{
if (Application.isPlaying) return;
InitializeIfNeeded();
}
@ -418,7 +419,8 @@ namespace Coffee.UIExtensions
{
UnityEditor.EditorApplication.delayCall += () =>
{
if (this) InitializeIfNeeded();
if (Application.isPlaying || !this) return;
InitializeIfNeeded();
};
}
#endif

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.34",
"version": "3.0.0-preview.35",
"unity": "2018.2",
"license": "MIT",
"repository": {