HierarchyFindPartModelByPath Method (Part, String, Transform) |
Finds a transform in the hirerachy by the provided path.
Namespace:
KSPDev.ModelUtils
Assembly:
KSPDev_Utils.2.0 (in KSPDev_Utils.2.0.dll) Version: 2.0 for KSP v1.8+
Syntaxpublic static Transform FindPartModelByPath(
Part parent,
string path,
Transform defValue = null
)
Request Example
View SourceParameters
- parent
- Type: (Default Namespace)Part
The transfrom to start looking from. - path
- Type: SystemString
The path to the target. The name components must be escaped if they contain the special
symbols.
- defValue (Optional)
- Type: Transform
An object to return if the path is not found. This situation will be treated as a danger, and
a warning log record will be made.
Return Value
Type:
TransformA transform or
null if nothing found.
Remarks
See Also