From 22bcecd0abd6ad651fcf066e5c9efe9a43fd217a Mon Sep 17 00:00:00 2001 From: mob-sakai Date: Tue, 10 Nov 2020 01:51:24 +0900 Subject: [PATCH] fix: null Reference when creating New Scene after Prefab was open in PrefabMode Close #111 --- Scripts/UIParticleUpdater.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/UIParticleUpdater.cs b/Scripts/UIParticleUpdater.cs index 2907549..0f78156 100755 --- a/Scripts/UIParticleUpdater.cs +++ b/Scripts/UIParticleUpdater.cs @@ -59,7 +59,7 @@ namespace Coffee.UIExtensions private static void Refresh(UIParticle particle) { - if (!particle || !particle.canvas || !particle.canvasRenderer) return; + if (!particle || !particle.bakedMesh || !particle.canvas || !particle.canvasRenderer) return; Profiler.BeginSample("[UIParticle] Modify scale"); ModifyScale(particle);