fix: The maximum material count is 8

pull/150/head
mob-sakai 2021-02-18 01:57:04 +09:00
parent 41e895a2db
commit 3bb5241275
1 changed files with 1 additions and 1 deletions

View File

@ -266,7 +266,7 @@ namespace Coffee.UIExtensions
// //
GetComponents(typeof(IMaterialModifier), s_Components); GetComponents(typeof(IMaterialModifier), s_Components);
var materialCount = Mathf.Max(8, count); var materialCount = Mathf.Min(8, count);
canvasRenderer.materialCount = materialCount; canvasRenderer.materialCount = materialCount;
var j = 0; var j = 0;
for (var i = 0; i < particles.Count; i++) for (var i = 0; i < particles.Count; i++)