Click or drag to resize

AsyncCall Class

Set of tools to execute a delayed code.
Inheritance Hierarchy
SystemObject
  KSPDev.ProcessingUtilsAsyncCall

Namespace:  KSPDev.ProcessingUtils
Assembly:  KSPDev_Utils.2.5 (in KSPDev_Utils.2.5.dll) Version: 2.5 for KSP v1
Syntax
C#
public static class AsyncCall
Request Example View Source

The AsyncCall type exposes the following members.

Methods
  NameDescription
Public methodStatic memberCode exampleAsyncWaitForPhysics
Public methodStatic memberCode exampleCallOnEndOfFrame
Delays execution of the delegate till the end of the frame.
Public methodStatic memberCode exampleCallOnFixedUpdate
Delays execution of the delegate till the next fixed update.
Public methodStatic memberCode exampleCallOnTimeout
Delays execution of the delegate for the specified amount of time.
Public methodStatic memberCode exampleWaitForPhysics
Delays execution until the specified condition is reached. Waiting is limited by the specified number of fixed frame updates.
Top
Remarks
Use these tools when the code needs to be executed with some delay or at the specific moment of time.
See Also