From c5ff121b35419084884116a9505752dc26773dc9 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Tue, 3 Mar 2020 09:48:14 +0000 Subject: [PATCH] 3.0.0-preview.8 # [3.0.0-preview.8](https://github.com/mob-sakai/ParticleEffectForUGUI/compare/v3.0.0-preview.7...v3.0.0-preview.8) (2020-03-03) ### Bug Fixes * abnormal Mesh Bounds with Particle Trails ([518a749](https://github.com/mob-sakai/ParticleEffectForUGUI/commit/518a7497105a114a0f6b1782df0c35ba0aecfab2)), closes [#61](https://github.com/mob-sakai/ParticleEffectForUGUI/issues/61) * multiple UIParticleOverlayCamera in scene ([3f09395](https://github.com/mob-sakai/ParticleEffectForUGUI/commit/3f093958b3353463d6c5bd29ef3338203d4e41d7)), closes [#73](https://github.com/mob-sakai/ParticleEffectForUGUI/issues/73) --- CHANGELOG.md | 8 ++++++++ Scripts/UIParticle.cs | 8 +++++--- Scripts/UIParticleOverlayCamera.cs | 9 +++++++++ package.json | 2 +- 4 files changed, 23 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9acb6ff..04de1ad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +# [3.0.0-preview.8](https://github.com/mob-sakai/ParticleEffectForUGUI/compare/v3.0.0-preview.7...v3.0.0-preview.8) (2020-03-03) + + +### Bug Fixes + +* abnormal Mesh Bounds with Particle Trails ([518a749](https://github.com/mob-sakai/ParticleEffectForUGUI/commit/518a7497105a114a0f6b1782df0c35ba0aecfab2)), closes [#61](https://github.com/mob-sakai/ParticleEffectForUGUI/issues/61) +* multiple UIParticleOverlayCamera in scene ([3f09395](https://github.com/mob-sakai/ParticleEffectForUGUI/commit/3f093958b3353463d6c5bd29ef3338203d4e41d7)), closes [#73](https://github.com/mob-sakai/ParticleEffectForUGUI/issues/73) + # [3.0.0-preview.7](https://github.com/mob-sakai/ParticleEffectForUGUI/compare/v3.0.0-preview.6...v3.0.0-preview.7) (2020-03-02) diff --git a/Scripts/UIParticle.cs b/Scripts/UIParticle.cs index 923ad10..4a66702 100755 --- a/Scripts/UIParticle.cs +++ b/Scripts/UIParticle.cs @@ -381,11 +381,13 @@ namespace Coffee.UIExtensions } Profiler.EndSample(); - // Editor crashes when mesh is set to null when ParticleSystem.RenderMode=Mesh + // #69: Editor crashes when mesh is set to null when ParticleSystem.RenderMode=Mesh if (_renderer.renderMode == ParticleSystemRenderMode.Mesh && !_renderer.mesh) - { return; - } + + // #61: When ParticleSystem.RenderMode=None, an error occurs + if (_renderer.renderMode == ParticleSystemRenderMode.None) + return; Profiler.BeginSample("Make Matrix"); ParticleSystem.MainModule main = m_ParticleSystem.main; diff --git a/Scripts/UIParticleOverlayCamera.cs b/Scripts/UIParticleOverlayCamera.cs index c5b96ed..2e70cad 100644 --- a/Scripts/UIParticleOverlayCamera.cs +++ b/Scripts/UIParticleOverlayCamera.cs @@ -133,6 +133,15 @@ namespace Coffee.UIExtensions } } + /// + /// This function is called when the MonoBehaviour will be destroyed. + /// + void OnEnable() + { + gameObject.hideFlags = HideFlags.HideAndDontSave; + gameObject.tag = "EditorOnly"; + } + /// /// This function is called when the MonoBehaviour will be destroyed. /// diff --git a/package.json b/package.json index 56b58eb..04928f7 100644 --- a/package.json +++ b/package.json @@ -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.7", + "version": "3.0.0-preview.8", "unity": "2018.2", "license": "MIT", "repository": {