言語: 日本語
  • C#
  • JS
  • Boo

スクリプト言語

お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。

WSA.Application.TryInvokeOnAppThread

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Sumbission failed

For some reason your suggested change could not be submitted. Please try again in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

public static function TryInvokeOnAppThread(item: AppCallbackItem, waitUntilDone: bool): bool;
public static bool TryInvokeOnAppThread(AppCallbackItem item, bool waitUntilDone);
public static def TryInvokeOnAppThread(item as AppCallbackItem, waitUntilDone as bool) as bool

Parameters

item Item to execute.
waitUntilDone Wait until item is executed.

Description

Tries to execute callback item on application thread.

Returns true, if item was successfully invoked on application thread, false - if item cannot be executed at this time, this could happen if UI thread waits for item to be executed on application thread.