更新0.5.11
This commit is contained in:
@@ -5,6 +5,7 @@ using TMPro;
|
|||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.Events;
|
using UnityEngine.Events;
|
||||||
using UnityEngine.EventSystems;
|
using UnityEngine.EventSystems;
|
||||||
|
using UnityEngine.Serialization;
|
||||||
using XericLibrary.Runtime.MacroLibrary;
|
using XericLibrary.Runtime.MacroLibrary;
|
||||||
|
|
||||||
namespace Deconstruction.UI.TmpText
|
namespace Deconstruction.UI.TmpText
|
||||||
@@ -17,6 +18,8 @@ namespace Deconstruction.UI.TmpText
|
|||||||
{
|
{
|
||||||
private TextMeshProUGUI _tmpText;
|
private TextMeshProUGUI _tmpText;
|
||||||
|
|
||||||
|
public bool autoFixRayCastTargetState = true;
|
||||||
|
|
||||||
#if ODIN_INSPECTOR
|
#if ODIN_INSPECTOR
|
||||||
[LabelText("超链接管理器*")]
|
[LabelText("超链接管理器*")]
|
||||||
#endif
|
#endif
|
||||||
@@ -64,7 +67,7 @@ namespace Deconstruction.UI.TmpText
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
private void Awake()
|
protected virtual void Awake()
|
||||||
{
|
{
|
||||||
if (_tmpText == null)
|
if (_tmpText == null)
|
||||||
_tmpText = GetComponent<TextMeshProUGUI>();
|
_tmpText = GetComponent<TextMeshProUGUI>();
|
||||||
@@ -73,7 +76,13 @@ namespace Deconstruction.UI.TmpText
|
|||||||
if (manager == null)
|
if (manager == null)
|
||||||
throw new Exception("TMP文本超链接集成捕获组件必须放在具有管理器的父级下");
|
throw new Exception("TMP文本超链接集成捕获组件必须放在具有管理器的父级下");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected virtual void OnEnable()
|
||||||
|
{
|
||||||
|
if (autoFixRayCastTargetState)
|
||||||
|
_tmpText.raycastTarget = true;
|
||||||
|
}
|
||||||
|
|
||||||
public void OnPointerClick(PointerEventData eventData)
|
public void OnPointerClick(PointerEventData eventData)
|
||||||
{
|
{
|
||||||
ClickPoint(eventData.position);
|
ClickPoint(eventData.position);
|
||||||
|
|||||||
Binary file not shown.
@@ -3643,6 +3643,42 @@
|
|||||||
<param name="interpolationSyntax">内插语法,表示此foreachdo不会作为执行器运行,而是作为其中一步执行</param>
|
<param name="interpolationSyntax">内插语法,表示此foreachdo不会作为执行器运行,而是作为其中一步执行</param>
|
||||||
<returns></returns>
|
<returns></returns>
|
||||||
</member>
|
</member>
|
||||||
|
<member name="M:XericLibrary.Runtime.MacroLibrary.MacroMath.UntilTrue``1(System.Collections.Generic.IEnumerable{``0},System.Func{``0,System.Boolean},System.Boolean)">
|
||||||
|
<summary>
|
||||||
|
迭代直到真状态
|
||||||
|
</summary>
|
||||||
|
<typeparam name="T"></typeparam>
|
||||||
|
<param name="source"></param>
|
||||||
|
<param name="getState"></param>
|
||||||
|
<returns></returns>
|
||||||
|
</member>
|
||||||
|
<member name="M:XericLibrary.Runtime.MacroLibrary.MacroMath.UntilFalse``1(System.Collections.Generic.IEnumerable{``0},System.Func{``0,System.Boolean},System.Boolean)">
|
||||||
|
<summary>
|
||||||
|
迭代直到假状态
|
||||||
|
</summary>
|
||||||
|
<typeparam name="T"></typeparam>
|
||||||
|
<param name="source"></param>
|
||||||
|
<param name="getState"></param>
|
||||||
|
<returns></returns>
|
||||||
|
</member>
|
||||||
|
<member name="M:XericLibrary.Runtime.MacroLibrary.MacroMath.UntilEqules``1(System.Collections.Generic.IEnumerable{``0},``0,System.Boolean)">
|
||||||
|
<summary>
|
||||||
|
迭代直到相等
|
||||||
|
</summary>
|
||||||
|
<typeparam name="T"></typeparam>
|
||||||
|
<param name="source"></param>
|
||||||
|
<param name="target"></param>
|
||||||
|
<returns></returns>
|
||||||
|
</member>
|
||||||
|
<member name="M:XericLibrary.Runtime.MacroLibrary.MacroMath.UntilNotEqules``1(System.Collections.Generic.IEnumerable{``0},``0,System.Boolean)">
|
||||||
|
<summary>
|
||||||
|
迭代直到不相等
|
||||||
|
</summary>
|
||||||
|
<typeparam name="T"></typeparam>
|
||||||
|
<param name="source"></param>
|
||||||
|
<param name="target"></param>
|
||||||
|
<returns></returns>
|
||||||
|
</member>
|
||||||
<member name="M:XericLibrary.Runtime.MacroLibrary.MacroMath.IndexOf``1(System.Collections.Generic.IEnumerable{``0},System.Func{``0,System.Boolean})">
|
<member name="M:XericLibrary.Runtime.MacroLibrary.MacroMath.IndexOf``1(System.Collections.Generic.IEnumerable{``0},System.Func{``0,System.Boolean})">
|
||||||
<summary>
|
<summary>
|
||||||
在枚举器中定位到首个当equals结果为真的项目索引
|
在枚举器中定位到首个当equals结果为真的项目索引
|
||||||
@@ -9124,6 +9160,11 @@
|
|||||||
忽略循环引用
|
忽略循环引用
|
||||||
</summary>
|
</summary>
|
||||||
</member>
|
</member>
|
||||||
|
<member name="T:XericLibrary.Runtime.MacroLibrary.MacroFile.NullFloatConverter">
|
||||||
|
<summary>
|
||||||
|
可空浮点
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
<member name="M:XericLibrary.Runtime.MacroLibrary.MacroFile.GetSpecialPath(System.String,System.Environment.SpecialFolder)">
|
<member name="M:XericLibrary.Runtime.MacroLibrary.MacroFile.GetSpecialPath(System.String,System.Environment.SpecialFolder)">
|
||||||
<summary>
|
<summary>
|
||||||
获取系统枚举路径
|
获取系统枚举路径
|
||||||
|
|||||||
Reference in New Issue
Block a user