From 3bb52412751360409747192150188ae904f2c3d3 Mon Sep 17 00:00:00 2001 From: mob-sakai Date: Thu, 18 Feb 2021 01:57:04 +0900 Subject: [PATCH] fix: The maximum material count is 8 --- Scripts/UIParticle.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/UIParticle.cs b/Scripts/UIParticle.cs index 9d8609e..9b9bfa5 100755 --- a/Scripts/UIParticle.cs +++ b/Scripts/UIParticle.cs @@ -266,7 +266,7 @@ namespace Coffee.UIExtensions // GetComponents(typeof(IMaterialModifier), s_Components); - var materialCount = Mathf.Max(8, count); + var materialCount = Mathf.Min(8, count); canvasRenderer.materialCount = materialCount; var j = 0; for (var i = 0; i < particles.Count; i++)