Cocos2D.CCTask
Class CCTask
Namespace: Cocos2D
Assembly: Cocos2D.dll, cocos2d_mono.Core.Android.dll, cocos2d_mono.Core.DesktopGL.dll, cocos2d-mono.Core.iOS.dll, cocos2d_mono.Core.Linux.dll, cocos2d_mono.Core.macOS.dll, cocos2d_mono.Windows.dll, cocos2d_mono.DesktopGL.dll, cocos2d-mono.iOS.dll, cocos2d_mono.Linux.dll, cocos2d_mono.macOS.dll
public static class CCTask
Inheritance
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Methods
BlockOnUIThread(Action)
Runs the given action on the UI thread and blocks the current thread while the action is running. If the current thread is the UI thread, the action will run immediately.
public static void BlockOnUIThread(Action action)
Parameters
action
Action
The action to be run on the UI thread
BlockOnUIThread(Action)
Runs the given action on the UI thread and blocks the current thread while the action is running. If the current thread is the UI thread, the action will run immediately.
public static void BlockOnUIThread(Action action)
Parameters
action
Action
The action to be run on the UI thread
BlockOnUIThread(Action)
public static void BlockOnUIThread(Action action)
Parameters
action
Action
BlockOnUIThread(Action)
public static void BlockOnUIThread(Action action)
Parameters
action
Action
BlockOnUIThread(Action)
public static void BlockOnUIThread(Action action)
Parameters
action
Action
BlockOnUIThread(Action)
public static void BlockOnUIThread(Action action)
Parameters
action
Action
BlockOnUIThread(Action)
public static void BlockOnUIThread(Action action)
Parameters
action
Action
BlockOnUIThread(Action)
public static void BlockOnUIThread(Action action)
Parameters
action
Action
BlockOnUIThread(Action)
public static void BlockOnUIThread(Action action)
Parameters
action
Action
BlockOnUIThread(Action)
public static void BlockOnUIThread(Action action)
Parameters
action
Action
BlockOnUIThread(Action)
public static void BlockOnUIThread(Action action)
Parameters
action
Action
BlockOnUIThread(Action)
public static void BlockOnUIThread(Action action)
Parameters
action
Action
EnsureUIThread()
Throws an exception if the code is not currently running on the UI thread.
public static void EnsureUIThread()
Exceptions
Thrown if the code is not currently running on the UI thread.
EnsureUIThread()
Throws an exception if the code is not currently running on the UI thread.
public static void EnsureUIThread()
Exceptions
Thrown if the code is not currently running on the UI thread.
EnsureUIThread()
public static void EnsureUIThread()
EnsureUIThread()
public static void EnsureUIThread()
EnsureUIThread()
public static void EnsureUIThread()
EnsureUIThread()
public static void EnsureUIThread()
EnsureUIThread()
public static void EnsureUIThread()
EnsureUIThread()
public static void EnsureUIThread()
EnsureUIThread()
public static void EnsureUIThread()
EnsureUIThread()
public static void EnsureUIThread()
EnsureUIThread()
public static void EnsureUIThread()
EnsureUIThread()
public static void EnsureUIThread()
IsOnUIThread()
Checks if the code is currently running on the UI thread.
public static bool IsOnUIThread()
Returns
true if the code is currently running on the UI thread.
IsOnUIThread()
Checks if the code is currently running on the UI thread.
public static bool IsOnUIThread()
Returns
true if the code is currently running on the UI thread.
IsOnUIThread()
public static bool IsOnUIThread()
Returns
IsOnUIThread()
public static bool IsOnUIThread()
Returns
IsOnUIThread()
public static bool IsOnUIThread()
Returns
IsOnUIThread()
public static bool IsOnUIThread()
Returns
IsOnUIThread()
public static bool IsOnUIThread()
Returns
IsOnUIThread()
public static bool IsOnUIThread()
Returns
IsOnUIThread()
public static bool IsOnUIThread()
Returns
IsOnUIThread()
public static bool IsOnUIThread()
Returns
IsOnUIThread()
public static bool IsOnUIThread()
Returns
IsOnUIThread()
public static bool IsOnUIThread()
Returns
RunAsync(Action)
public static object RunAsync(Action action)
Parameters
action
Action
Returns
RunAsync(Action, Action<object>)
public static object RunAsync(Action action, Action<object> taskCompleted)
Parameters
action
Action
taskCompleted
Action[object](https://learn.microsoft.com/dotnet/api/system.object)\
Returns
RunAsync(Action)
public static object RunAsync(Action action)
Parameters
action
Action
Returns
RunAsync(Action, Action<object>)
public static object RunAsync(Action action, Action<object> taskCompleted)
Parameters
action
Action
taskCompleted
Action[object](https://learn.microsoft.com/dotnet/api/system.object)\
Returns
RunAsync(Action)
public static object RunAsync(Action action)
Parameters
action
Action
Returns
RunAsync(Action, Action<object>)
public static object RunAsync(Action action, Action<object> taskCompleted)
Parameters
action
Action
taskCompleted
Action[object](https://learn.microsoft.com/dotnet/api/system.object)\
Returns
RunAsync(Action)
public static object RunAsync(Action action)
Parameters
action
Action
Returns
RunAsync(Action, Action<object>)
public static object RunAsync(Action action, Action<object> taskCompleted)
Parameters
action
Action
taskCompleted
Action[object](https://learn.microsoft.com/dotnet/api/system.object)\
Returns
RunAsync(Action)
public static object RunAsync(Action action)
Parameters
action
Action
Returns
RunAsync(Action, Action<object>)
public static object RunAsync(Action action, Action<object> taskCompleted)
Parameters
action
Action
taskCompleted
Action[object](https://learn.microsoft.com/dotnet/api/system.object)\
Returns
RunAsync(Action)
public static object RunAsync(Action action)
Parameters
action
Action
Returns
RunAsync(Action, Action<object>)
public static object RunAsync(Action action, Action<object> taskCompleted)
Parameters
action
Action
taskCompleted
Action[object](https://learn.microsoft.com/dotnet/api/system.object)\
Returns
RunAsync(Action)
public static object RunAsync(Action action)
Parameters
action
Action
Returns
RunAsync(Action, Action<object>)
public static object RunAsync(Action action, Action<object> taskCompleted)
Parameters
action
Action
taskCompleted
Action[object](https://learn.microsoft.com/dotnet/api/system.object)\
Returns
RunAsync(Action)
public static object RunAsync(Action action)
Parameters
action
Action
Returns
RunAsync(Action, Action<object>)
public static object RunAsync(Action action, Action<object> taskCompleted)
Parameters
action
Action
taskCompleted
Action[object](https://learn.microsoft.com/dotnet/api/system.object)\
Returns
RunAsync(Action)
public static object RunAsync(Action action)
Parameters
action
Action
Returns
RunAsync(Action, Action<object>)
public static object RunAsync(Action action, Action<object> taskCompleted)
Parameters
action
Action
taskCompleted
Action[object](https://learn.microsoft.com/dotnet/api/system.object)\
Returns
RunAsync(Action)
public static object RunAsync(Action action)
Parameters
action
Action
Returns
RunAsync(Action, Action<object>)
public static object RunAsync(Action action, Action<object> taskCompleted)
Parameters
action
Action
taskCompleted
Action[object](https://learn.microsoft.com/dotnet/api/system.object)\
Returns
RunAsync(Action)
public static object RunAsync(Action action)
Parameters
action
Action
Returns
RunAsync(Action, Action<object>)
public static object RunAsync(Action action, Action<object> taskCompleted)
Parameters
action
Action
taskCompleted
Action[object](https://learn.microsoft.com/dotnet/api/system.object)\
Returns
RunAsync(Action)
public static object RunAsync(Action action)
Parameters
action
Action
Returns
RunAsync(Action, Action<object>)
public static object RunAsync(Action action, Action<object> taskCompleted)
Parameters
action
Action
taskCompleted
Action[object](https://learn.microsoft.com/dotnet/api/system.object)\
Returns
RunOnScheduler(Action)
public static void RunOnScheduler(Action action)
Parameters
action
Action
RunOnScheduler(Action)
public static void RunOnScheduler(Action action)
Parameters
action
Action
RunOnScheduler(Action)
public static void RunOnScheduler(Action action)
Parameters
action
Action
RunOnScheduler(Action)
public static void RunOnScheduler(Action action)
Parameters
action
Action
RunOnScheduler(Action)
public static void RunOnScheduler(Action action)
Parameters
action
Action
RunOnScheduler(Action)
public static void RunOnScheduler(Action action)
Parameters
action
Action
RunOnScheduler(Action)
public static void RunOnScheduler(Action action)
Parameters
action
Action
RunOnScheduler(Action)
public static void RunOnScheduler(Action action)
Parameters
action
Action
RunOnScheduler(Action)
public static void RunOnScheduler(Action action)
Parameters
action
Action
RunOnScheduler(Action)
public static void RunOnScheduler(Action action)
Parameters
action
Action
RunOnScheduler(Action)
public static void RunOnScheduler(Action action)
Parameters
action
Action
RunOnScheduler(Action)
public static void RunOnScheduler(Action action)
Parameters
action
Action
RunOnUiThread(Action)
public static void RunOnUiThread(Action action)
Parameters
action
Action
RunOnUiThread(Action)
public static void RunOnUiThread(Action action)
Parameters
action
Action
RunOnUiThread(Action)
public static void RunOnUiThread(Action action)
Parameters
action
Action
RunOnUiThread(Action)
public static void RunOnUiThread(Action action)
Parameters
action
Action
RunOnUiThread(Action)
public static void RunOnUiThread(Action action)
Parameters
action
Action
RunOnUiThread(Action)
public static void RunOnUiThread(Action action)
Parameters
action
Action
RunOnUiThread(Action)
public static void RunOnUiThread(Action action)
Parameters
action
Action
RunOnUiThread(Action)
public static void RunOnUiThread(Action action)
Parameters
action
Action
RunOnUiThread(Action)
public static void RunOnUiThread(Action action)
Parameters
action
Action
RunOnUiThread(Action)
public static void RunOnUiThread(Action action)
Parameters
action
Action
RunOnUiThread(Action)
public static void RunOnUiThread(Action action)
Parameters
action
Action
RunOnUiThread(Action)
public static void RunOnUiThread(Action action)
Parameters
action
Action