Click or drag to resize

HierarchyFindTransformInChildren Method

Finds a transform by name down the hierarchy.

Namespace:  KSPDev.ModelUtils
Assembly:  KSPDev_Utils.1.1 (in KSPDev_Utils.1.1.dll) Version: 1.1 for KSP v1.6+
Syntax
C#
public static Transform FindTransformInChildren(
	Transform parent,
	string name
)
Request Example View Source

Parameters

parent
Type: UnityEngineTransform
The transfrom to start from.
name
Type: SystemString
The name of the transfrom.

Return Value

Type: Transform
A transform or null if nothing is found.
Remarks
Implements breadth-first search approach to minimize depth of the found transform.
See Also