TransformExtensions.GetFullPath(Transform, String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.