Click or drag to resize

PartNodeUtilsGetModuleNode Method (ConfigNode, String)

Extracts a module config node from the part config.

Namespace:  KSPDev.ConfigUtils
Assembly:  KSPDev_Utils.1.1 (in KSPDev_Utils.1.1.dll) Version: 1.1 for KSP v1.6+
Syntax
C#
public static ConfigNode GetModuleNode(
	ConfigNode partNode,
	string moduleName
)
Request Example View Source

Parameters

partNode
Type: (Default Namespace)ConfigNode
The part's config. It can be a top-level node or the PART node.
moduleName
Type: SystemString
The name of the module to extract.

Return Value

Type: ConfigNode
The module node or null if not found.
See Also