Edit

Share via


TransformExtensions.GetFullPath(Transform, String, String) Method

Definition

An extension method that will get you the full path to an object.

public static string GetFullPath (this UnityEngine.Transform transform, string delimiter = ".", string prefix = "/");
static member GetFullPath : UnityEngine.Transform * string * string -> string
<Extension()>
Public Function GetFullPath (transform As Transform, Optional delimiter As String = ".", Optional prefix As String = "/") As String

Parameters

transform
UnityEngine.Transform

The transform you wish a full path to.

delimiter
String

The delimiter with which each object is delimited in the string.

prefix
String

Prefix with which the full path to the object should start.

Returns

A delimited string that is the full path to the game object in the hierarchy.

Applies to