Click or drag to resize

GameObjectExtensionsGetChildren Method

Get all children of a transform as an array

Namespace:  ImmerseSDK.Extensions
Assembly:  ImmerseSDK.App (in ImmerseSDK.App.dll) Version: 3.9.0.0 (3.9.0.0)
Syntax
C#
public static UnityEngine.Transform[] GetChildren(
	this UnityEngine.Transform parent,
	bool recursive
)

Parameters

parent
Type: UnityEngine.Transform
Parent transform
recursive
Type: SystemBoolean
Should it include children of children?

Return Value

Type: UnityEngine.Transform

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