class MAGES::Utilities::RuntimeDispatcher

Overview

Gathers actions from other threads and then dispatches them on the main thread, in order, when Update is called. More…

class RuntimeDispatcher: public MonoBehaviour
{
public:
    // methods

    static void QueueExecute(Action action);
};

Detailed Documentation

Gathers actions from other threads and then dispatches them on the main thread, in order, when Update is called.

Methods

static void QueueExecute(Action action)

Enqueues the specified action, for execution on the main thread. If this is called from the main thread, the action will be executed immediately.

Parameters:

action

The action.