From ea043524c0b00f67cba26a1f9ea537ee4a56d6ff 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 --- Packages/src/Runtime/ModifiedMaterial.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Packages/src/Runtime/ModifiedMaterial.cs b/Packages/src/Runtime/ModifiedMaterial.cs index bb65a29..fe3d53b 100644 --- a/Packages/src/Runtime/ModifiedMaterial.cs +++ b/Packages/src/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);