MonoBehaviourMultithreaded


namespace ThreadHarmonizer {
  public abstract class MonoBehaviourMultithreaded : MonoBehaviour;
}

MonoBehaviourMultithreaded is a requirement for utilizing the multithreading solutions provided in ThreadHarmonizer. It replaces the standard MonoBehaviour class typically used in scripts. Therefore, it’s only required for scripts intended to run multithreaded, not for every single one.

Member functions


adds a function to be executed each frame


disables multithreading for this script


runs a function on Unity’s main thread


runs a function on Unity’s main thread, blocking the current background thread until a value is returned


enables multithreading for this script


executes the function once within the next frame


removes a function from the multithreaded update loop


resets the ThreadHarmonizer entirely