Click or drag to resize

AbstractPartModuleInitModuleSettings Method

Initializes the module state according to the settings.

Namespace:  KSPDev.PartUtils
Assembly:  KSPDev_Utils.2.5 (in KSPDev_Utils.2.5.dll) Version: 2.5 for KSP v1
Syntax
C#
protected virtual void InitModuleSettings()
Request Example View Source
Remarks
This method is normally called from OnLoad method, when all the part components are created, but some of them may be not initialized yet. Under some circumstances it can be called from the OnStart method (e.g. in the editor or when loading an inconsistent save file).

This method is a good place for the module to become aware of the other part modules, but it's not the right place to deal with the other module settings.

This method can be called multiple times in the part's life time, so keep this method idempotent. The repetitive calls to this method should not break the part's logic.

See Also