We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8aa583 commit 62edf1fCopy full SHA for 62edf1f
Assets/HoloToolkit/Utilities/Scripts/Extensions/GameObjectExtensions.cs
@@ -12,14 +12,10 @@ namespace HoloToolkit.Unity
12
/// </summary>
13
public static class GameObjectExtensions
14
{
15
+ [Obsolete("Use the more extensive TransformExtensions.GetFullPath instead.")]
16
public static string GetFullPath(this GameObject go)
17
- if (go.transform.parent == null)
18
- {
19
- return go.name;
20
- }
21
-
22
- return go.transform.parent.gameObject.GetFullPath() + "/" + go.name;
+ return go.transform.GetFullPath("/", "");
23
}
24
25
/// <summary>
0 commit comments