 | UnityGameObjectUtilsGetPath Method |
Returns the full path (i.e. names of all ancestors and self) to the game object.
Namespace: Slash.Unity.Common.UtilsAssembly: Slash.Unity.Common (in Slash.Unity.Common.dll) Version: 1.0.6018.40182
Syntaxpublic static string GetPath(
this GameObject gameObject
)
<ExtensionAttribute>
Public Shared Function GetPath (
gameObject As GameObject
) As String
public:
[ExtensionAttribute]
static String^ GetPath(
GameObject^ gameObject
)
[<ExtensionAttribute>]
static member GetPath :
gameObject : GameObject -> string
Parameters
- gameObject
- Type: GameObject
Game object to get path for.
Return Value
Type:
StringFull path of the specified game object.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
GameObject. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also