-
Notifications
You must be signed in to change notification settings - Fork 12
App
DucNV_2000 edited this page Feb 22, 2024
·
7 revisions
App is the struct helper reference to MonoGlobal
. It provides the following support methods
-
AddPauseCallback
: insert callback inside OnApplicationPause -
RemovePauseCallback
:remove callback inside OnApplicationPause if it exits -
AddFocusCallback
: insert callback inside OnApplicationFocus -
RemoveFocusCallback
: remove callback inside OnApplicationFocus if it exits -
AddQuitCallback
: insert callback inside OnApplicationQuit -
RemoveQuitCallback
:remove callback inside OnApplicationQuit if it exits -
StartCoroutine
: start coroutine by MonoGlobal -
StopCoroutine
: stop coroutine by MonoGlobal -
StopAllCoroutine
: stop all coroutine by MonoGlobal -
ToMainThread
: Converts the specified action to one that runs on the main thread. The converted action will be invoked upon the next Unity Update event. -
RunOnMainThread
: Schedules the specifies action to be run on the main thread (game thread). The action will be invoked upon the next Unity Update event.