From 5a21298c02b7c3a667baa5a5165255f3bc28a7e8 Mon Sep 17 00:00:00 2001 From: mob-sakai Date: Mon, 14 Aug 2023 15:43:18 +0900 Subject: [PATCH] fix: sub-emitters option is not work in editor playing close #231 --- Scripts/UIParticleRenderer.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Scripts/UIParticleRenderer.cs b/Scripts/UIParticleRenderer.cs index d05861e..4c28d3c 100644 --- a/Scripts/UIParticleRenderer.cs +++ b/Scripts/UIParticleRenderer.cs @@ -519,7 +519,9 @@ namespace Coffee.UIExtensions _prewarm = false; } - // Emitted particles found. + // (COMMENT OUT) #231: Sub Emitters option is not work in editor playing + /* + // Emitted particles found. if (_prevParticleCount != _particleSystem.particleCount) { var size = _particleSystem.particleCount; @@ -534,6 +536,7 @@ namespace Coffee.UIExtensions _particleSystem.SetParticles(particles, size); } + */ // get world position. var psTransform = _particleSystem.transform;