Click or drag to resize

GameObjectExtensionsFindChildRecursively Method

Search for a child transform within the parent transform's entire hierarchy

Namespace:  ImmerseSDK.Extensions
Assembly:  ImmerseSDK.App (in ImmerseSDK.App.dll) Version: 3.5.0.0 (3.5.0.0)
Syntax
C#
public static UnityEngine.Transform FindChildRecursively(
	this UnityEngine.Transform parent,
	string child
)

Parameters

parent
Type: UnityEngine.Transform
Parent transform to search
child
Type: SystemString
Child name

Return Value

Type: UnityEngine.Transform
Returns a transform with the specified name or null if no such transform exists

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type UnityEngine.Transform. 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