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+
Syntaxpublic static Transform FindTransformInChildren(
Transform parent,
string name
)
Request Example
View SourceParameters
- parent
- Type: UnityEngineTransform
The transfrom to start from. - name
- Type: SystemString
The name of the transfrom.
Return Value
Type:
TransformA transform or
null if nothing is found.
Remarks
Implements breadth-first search approach to minimize depth of the found transform.
See Also