From 1ab047b5fdd933c38ba0519ec2e83a44512ea8d7 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期四, 26 三月 2026 17:46:11 +0800
Subject: [PATCH] webgl代码合并 1
---
Main/Component/UI/Core/TextEx.cs | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/Main/Component/UI/Core/TextEx.cs b/Main/Component/UI/Core/TextEx.cs
index 041c71a..723ffa2 100644
--- a/Main/Component/UI/Core/TextEx.cs
+++ b/Main/Component/UI/Core/TextEx.cs
@@ -42,6 +42,25 @@
}
}
+ public override string text
+ {
+ get { return base.text; }
+ set
+ {
+ if (value != base.text)
+ {
+ base.text = value;
+
+ #if UNITY_EDITOR
+ if (material != null)
+ {
+ material.shader = Shader.Find(material.shader.name);
+ }
+ #endif
+ }
+ }
+ }
+
[SerializeField]
private BackGroundColorType m_BGColorType = BackGroundColorType.Dark;
public BackGroundColorType bgColorType
--
Gitblit v1.8.0