ConfigAccessorGetNodeByPath Method (ConfigNode, String, Boolean) |
Reads a node from config node by a path.
Namespace:
KSPDev.ConfigUtils
Assembly:
KSPDev_Utils.1.1 (in KSPDev_Utils.1.1.dll) Version: 1.1 for KSP v1.6+
Syntaxpublic static ConfigNode GetNodeByPath(
ConfigNode node,
string path,
bool createIfMissing = false
)
Request Example
View SourceParameters
- node
- Type: (Default Namespace)ConfigNode
A node to read data from. - path
- Type: SystemString
A string path to the node. Path components should be separated by '/'
symbol. - 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.
See Also