From 1ab047b5fdd933c38ba0519ec2e83a44512ea8d7 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期四, 26 三月 2026 17:46:11 +0800
Subject: [PATCH] webgl代码合并 1
---
Main/System/Hero/UIHeroController.cs | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/Main/System/Hero/UIHeroController.cs b/Main/System/Hero/UIHeroController.cs
index d274488..3c89fe5 100644
--- a/Main/System/Hero/UIHeroController.cs
+++ b/Main/System/Hero/UIHeroController.cs
@@ -286,6 +286,14 @@
PlayAnimation(motionName, true);
spineAnimationState.Complete -= OnAnimationComplete;
spineAnimationState.Complete += OnAnimationComplete;
+
+#if UNITY_EIDTOR
+ await UniTask.Delay(100);
+ if (skeletonGraphic != null && skeletonGraphic.material != null)
+ {
+ skeletonGraphic.material.shader = Shader.Find(skeletonGraphic.material.shader.name);
+ }
+#endif
}
--
Gitblit v1.8.0