diff --git a/Runtime/UI/TmpText/TMPHyperlinkReceiver.cs b/Runtime/UI/TmpText/TMPHyperlinkReceiver.cs index 798b959..91b144e 100644 --- a/Runtime/UI/TmpText/TMPHyperlinkReceiver.cs +++ b/Runtime/UI/TmpText/TMPHyperlinkReceiver.cs @@ -5,6 +5,7 @@ using TMPro; using UnityEngine; using UnityEngine.Events; using UnityEngine.EventSystems; +using UnityEngine.Serialization; using XericLibrary.Runtime.MacroLibrary; namespace Deconstruction.UI.TmpText @@ -17,6 +18,8 @@ namespace Deconstruction.UI.TmpText { private TextMeshProUGUI _tmpText; + public bool autoFixRayCastTargetState = true; + #if ODIN_INSPECTOR [LabelText("超链接管理器*")] #endif @@ -64,7 +67,7 @@ namespace Deconstruction.UI.TmpText } #endif - private void Awake() + protected virtual void Awake() { if (_tmpText == null) _tmpText = GetComponent(); @@ -73,7 +76,13 @@ namespace Deconstruction.UI.TmpText if (manager == null) throw new Exception("TMP文本超链接集成捕获组件必须放在具有管理器的父级下"); } - + + protected virtual void OnEnable() + { + if (autoFixRayCastTargetState) + _tmpText.raycastTarget = true; + } + public void OnPointerClick(PointerEventData eventData) { ClickPoint(eventData.position); diff --git a/Runtime/XericLibrary.dll b/Runtime/XericLibrary.dll index e4b3b95..fbe18e8 100644 Binary files a/Runtime/XericLibrary.dll and b/Runtime/XericLibrary.dll differ diff --git a/Runtime/XericLibrary.xml b/Runtime/XericLibrary.xml index 998adbe..438e911 100644 --- a/Runtime/XericLibrary.xml +++ b/Runtime/XericLibrary.xml @@ -3643,6 +3643,42 @@ 内插语法,表示此foreachdo不会作为执行器运行,而是作为其中一步执行 + + + 迭代直到真状态 + + + + + + + + + 迭代直到假状态 + + + + + + + + + 迭代直到相等 + + + + + + + + + 迭代直到不相等 + + + + + + 在枚举器中定位到首个当equals结果为真的项目索引 @@ -9124,6 +9160,11 @@ 忽略循环引用 + + + 可空浮点 + + 获取系统枚举路径