Skip to content

Commit

Permalink
3.0.0-preview.35
Browse files Browse the repository at this point in the history
# [3.0.0-preview.35](mob-sakai/ParticleEffectForUGUI@v3.0.0-preview.34...v3.0.0-preview.35) (2020-09-27)

### Bug Fixes

* an error happens during loading scene in editor ([ab9d9aa](mob-sakai/ParticleEffectForUGUI@ab9d9aa)), closes [#101](mob-sakai/ParticleEffectForUGUI#101)
  • Loading branch information
LionelPerrault committed Sep 27, 2020
1 parent 44b18a1 commit 1c02f02
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)


Expand Down
4 changes: 3 additions & 1 deletion Scripts/UIParticle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -411,14 +411,16 @@ private void InitializeIfNeeded()
#if UNITY_EDITOR
void ISerializationCallbackReceiver.OnBeforeSerialize()
{
if (Application.isPlaying) return;
InitializeIfNeeded();
}

void ISerializationCallbackReceiver.OnAfterDeserialize()
{
UnityEditor.EditorApplication.delayCall += () =>
{
if (this) InitializeIfNeeded();
if (Application.isPlaying || !this) return;
InitializeIfNeeded();
};
}
#endif
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 1c02f02

Please sign in to comment.