From af9909f4dcb8250718f97b054df61328576aa3b5 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Tue, 11 Aug 2020 14:42:10 +0000 Subject: [PATCH] 3.0.0-preview.12 # [3.0.0-preview.12](https://github.com/mob-sakai/ParticleEffectForUGUI/compare/v3.0.0-preview.11...v3.0.0-preview.12) (2020-08-11) ### Bug Fixes * Profiler.BeginSample -> Profiler.EndSample if a canvas is disabled or a camera doesn't found ([4a0a5d1](https://github.com/mob-sakai/ParticleEffectForUGUI/commit/4a0a5d13be68e38d5b2e225156740aed27c52d12)) --- CHANGELOG.md | 7 +++++++ Scripts/UIParticle.cs | 1 + package.json | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bf60743..07c48ca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +# [3.0.0-preview.12](https://github.com/mob-sakai/ParticleEffectForUGUI/compare/v3.0.0-preview.11...v3.0.0-preview.12) (2020-08-11) + + +### Bug Fixes + +* Profiler.BeginSample -> Profiler.EndSample if a canvas is disabled or a camera doesn't found ([4a0a5d1](https://github.com/mob-sakai/ParticleEffectForUGUI/commit/4a0a5d13be68e38d5b2e225156740aed27c52d12)) + # [3.0.0-preview.11](https://github.com/mob-sakai/ParticleEffectForUGUI/compare/v3.0.0-preview.10...v3.0.0-preview.11) (2020-05-07) diff --git a/Scripts/UIParticle.cs b/Scripts/UIParticle.cs index b45235d..248f435 100755 --- a/Scripts/UIParticle.cs +++ b/Scripts/UIParticle.cs @@ -461,6 +461,7 @@ namespace Coffee.UIExtensions if (!cam) { + Profiler.EndSample(); return; } if (m_IsTrail) diff --git a/package.json b/package.json index b31359b..f6b331a 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.11", + "version": "3.0.0-preview.12", "unity": "2018.2", "license": "MIT", "repository": {