TransformExtensions.GetChildRecursive(Transform, 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.
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