Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


CallDelayed(CallbackFunction, double)

Register a callback to be executed later in the main thread.
Read time 1 minuteLast updated 11 days ago

Definition

public static Action CallDelayed(EditorApplication.CallbackFunction callback, double seconds = 0)

Parameters

Callback to be executed later in the main thread.

seconds

Number of seconds to wait until the main thread executes the user callback.

Returns

Type

Description

ActionReturns an off handler that can be used to unregister the callback before it gets executed in the main thread later.