Skip to content

Commit 62edf1f

Browse files
committed
Mark GameObjectExtensions.GetFullPath obsolete
1 parent a8aa583 commit 62edf1f

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

Assets/HoloToolkit/Utilities/Scripts/Extensions/GameObjectExtensions.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,10 @@ namespace HoloToolkit.Unity
1212
/// </summary>
1313
public static class GameObjectExtensions
1414
{
15+
[Obsolete("Use the more extensive TransformExtensions.GetFullPath instead.")]
1516
public static string GetFullPath(this GameObject go)
1617
{
17-
if (go.transform.parent == null)
18-
{
19-
return go.name;
20-
}
21-
22-
return go.transform.parent.gameObject.GetFullPath() + "/" + go.name;
18+
return go.transform.GetFullPath("/", "");
2319
}
2420

2521
/// <summary>

0 commit comments

Comments
 (0)