From d4ffadf599c0fd97abc2d47bad2bd3c71e5bc2b3 Mon Sep 17 00:00:00 2001 From: mob-sakai Date: Wed, 22 May 2024 16:06:30 +0900 Subject: [PATCH] fix: lost Material.mainTexture when using AnimatableProperties close #311 --- Runtime/ModifiedMaterial.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runtime/ModifiedMaterial.cs b/Runtime/ModifiedMaterial.cs index bb65a29..fe3d53b 100644 --- a/Runtime/ModifiedMaterial.cs +++ b/Runtime/ModifiedMaterial.cs @@ -29,7 +29,7 @@ namespace Coffee.UIParticleExtensions { name = $"{baseMat.name}_{id}", hideFlags = HideFlags.DontSave | HideFlags.NotEditable, - mainTexture = texture ? texture : null + mainTexture = texture ? texture : baseMat.mainTexture } }; s_Entries.Add(e);