TransformExtensions.GetChildRecursive(Transform, String) Method

Definition

Walk hierarchy looking for named transform

public:
 static UnityEngine::Transform ^ GetChildRecursive(UnityEngine::Transform ^ t, System::String ^ name);
public static UnityEngine.Transform GetChildRecursive (UnityEngine.Transform t, string name);
static member GetChildRecursive : UnityEngine.Transform * string -> UnityEngine.Transform
Public Function GetChildRecursive (t As Transform, name As String) As Transform

Parameters

t
UnityEngine.Transform

root transform to start searching from

name
String

name to look for

Returns

UnityEngine.Transform

returns found transform or null if none found

Applies to