ConfigAccessorGetNodeByPath Method (ConfigNode, String, Boolean) |
Reads a node from config node by a path.
Namespace:
KSPDev.ConfigUtils
Assembly:
KSPDev_Utils.2.0 (in KSPDev_Utils.2.0.dll) Version: 2.0 for KSP v1.8+
Syntaxpublic static ConfigNode GetNodeByPath(
ConfigNode node,
string[] pathKeys,
bool createIfMissing = false
)
Request Example
View SourceParameters
- node
- Type: (Default Namespace)ConfigNode
A node to read data from. - pathKeys
- Type: SystemString
An array of values that makes the full path. First node in the array is
the top most component of the path. - createIfMissing (Optional)
- Type: SystemBoolean
If true than unknown nodes in the path will be
created.
Return Value
Type:
ConfigNodeConfig node or
null if path or node is not present in the
node. Returns
node if path is empty array.
See Also