Version: 2019.3
public static bool RunningOnUIThread ();

説明

UI スレッドで実行するときに true を返します。

More information on UI and application threads can be found here.