Click or drag to resize

HierarchyGetFullPath Method

Returns a full path to the object starting from the specified 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[] GetFullPath(
	Transform obj,
	Transform parent = null
)
Request Example View Source

Parameters

obj
Type: Transform
The object to find path for.
parent (Optional)
Type: Transform
The object at which the path must stop. If null then the path is gathered to the root object.

Return Value

Type: String
A full path name components. The names are not escaped.
See Also