class MAGES::Editor::Utilities::EditorDelay

Overview

Create Delayed Function Invocations for editor. More…

class EditorDelay
{
public:
    // methods

    EditorDelay(int milliseconds, Action onDelayFinish);
    void Cancel();
};

Detailed Documentation

Create Delayed Function Invocations for editor.

Methods

EditorDelay(int milliseconds, Action onDelayFinish)

Initializes a new instance of the EditorDelay class.

Parameters:

milliseconds

The delay in milliseconds after which the callback will be invoked.

onDelayFinish

The callback to invoke after the delay has finished.

void Cancel()

Cancels the delay. The onDelayFinished callback will not be invoked.