Skip to content

Commit 5449a10

Browse files
committed
[增加]1. 增加获取UI路径的扩展函数
1 parent ab8beed commit 5449a10

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

Runtime/FairyGUIPathFinderHelper.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,19 @@
55

66
namespace GameFrameX.UI.FairyGUI.Runtime
77
{
8+
public static class GObjectExtensions
9+
{
10+
/// <summary>
11+
/// 获取UI路径
12+
/// </summary>
13+
/// <param name="self">GObject对象</param>
14+
/// <returns>UI路径</returns>
15+
public static string GetUIPath(this GObject self)
16+
{
17+
return FairyGUIPathFinderHelper.GetUIPath(self);
18+
}
19+
}
20+
821
/// <summary>
922
/// FGUI 路径帮助类
1023
/// </summary>

0 commit comments

Comments
 (0)