Click or drag to resize

HierarchyListHirerahcy Method

Returns the paths to all the transformations in the object. Each item is a full path to the transformation starting from the parent.

Namespace:  KSPDev.ModelUtils
Assembly:  KSPDev_Utils.2.0 (in KSPDev_Utils.2.0.dll) Version: 2.0 for KSP v1.8+
Syntax
C#
public static string[] ListHirerahcy(
	Transform parent,
	string pathPrefix = ""
)
Request Example View Source

Parameters

parent
Type: Transform
The object to start from.
pathPrefix (Optional)
Type: SystemString
The prefix to add to every path in the result.

Return Value

Type: String
The paths to all the objects in the hierarchy separated by a LF symbol.
See Also