Click or drag to resize

IPartModuleOnUpdate Method

Notifies about a frame update.

Namespace:  KSPDev.KSPInterfaces
Assembly:  KSPDev_Utils.2.0 (in KSPDev_Utils.2.0.dll) Version: 2.0 for KSP v1.8+
Syntax
C#
void OnUpdate()
Request Example View Source
Remarks
Be very careful about placing functionality into this callback even if it's bare "if/else" statement. This callback is called on every frame update. It means that even a simple piece of code will be called for every part that implements the module. Too many parts with such modules may significantly drop FPS.
See Also