Skip to main content

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

objectCCTask

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

InvalidOperationException

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

InvalidOperationException

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

bool

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

bool

true if the code is currently running on the UI thread.

IsOnUIThread()

public static bool IsOnUIThread()

Returns

bool

IsOnUIThread()

public static bool IsOnUIThread()

Returns

bool

IsOnUIThread()

public static bool IsOnUIThread()

Returns

bool

IsOnUIThread()

public static bool IsOnUIThread()

Returns

bool

IsOnUIThread()

public static bool IsOnUIThread()

Returns

bool

IsOnUIThread()

public static bool IsOnUIThread()

Returns

bool

IsOnUIThread()

public static bool IsOnUIThread()

Returns

bool

IsOnUIThread()

public static bool IsOnUIThread()

Returns

bool

IsOnUIThread()

public static bool IsOnUIThread()

Returns

bool

IsOnUIThread()

public static bool IsOnUIThread()

Returns

bool

RunAsync(Action)

public static object RunAsync(Action action)

Parameters

action Action

Returns

object

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

object

RunAsync(Action)

public static object RunAsync(Action action)

Parameters

action Action

Returns

object

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

object

RunAsync(Action)

public static object RunAsync(Action action)

Parameters

action Action

Returns

object

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

object

RunAsync(Action)

public static object RunAsync(Action action)

Parameters

action Action

Returns

object

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

object

RunAsync(Action)

public static object RunAsync(Action action)

Parameters

action Action

Returns

object

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

object

RunAsync(Action)

public static object RunAsync(Action action)

Parameters

action Action

Returns

object

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

object

RunAsync(Action)

public static object RunAsync(Action action)

Parameters

action Action

Returns

object

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

object

RunAsync(Action)

public static object RunAsync(Action action)

Parameters

action Action

Returns

object

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

object

RunAsync(Action)

public static object RunAsync(Action action)

Parameters

action Action

Returns

object

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

object

RunAsync(Action)

public static object RunAsync(Action action)

Parameters

action Action

Returns

object

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

object

RunAsync(Action)

public static object RunAsync(Action action)

Parameters

action Action

Returns

object

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

object

RunAsync(Action)

public static object RunAsync(Action action)

Parameters

action Action

Returns

object

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

object

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

  • Methods
    • BlockOnUIThread(Action)
    • BlockOnUIThread(Action)
    • BlockOnUIThread(Action)
    • BlockOnUIThread(Action)
    • BlockOnUIThread(Action)
    • BlockOnUIThread(Action)
    • BlockOnUIThread(Action)
    • BlockOnUIThread(Action)
    • BlockOnUIThread(Action)
    • BlockOnUIThread(Action)
    • BlockOnUIThread(Action)
    • BlockOnUIThread(Action)
    • EnsureUIThread()
    • EnsureUIThread()
    • EnsureUIThread()
    • EnsureUIThread()
    • EnsureUIThread()
    • EnsureUIThread()
    • EnsureUIThread()
    • EnsureUIThread()
    • EnsureUIThread()
    • EnsureUIThread()
    • EnsureUIThread()
    • EnsureUIThread()
    • IsOnUIThread()
    • IsOnUIThread()
    • IsOnUIThread()
    • IsOnUIThread()
    • IsOnUIThread()
    • IsOnUIThread()
    • IsOnUIThread()
    • IsOnUIThread()
    • IsOnUIThread()
    • IsOnUIThread()
    • IsOnUIThread()
    • IsOnUIThread()
    • RunAsync(Action)
    • RunAsync(Action, Action<object>)
    • RunAsync(Action)
    • RunAsync(Action, Action<object>)
    • RunAsync(Action)
    • RunAsync(Action, Action<object>)
    • RunAsync(Action)
    • RunAsync(Action, Action<object>)
    • RunAsync(Action)
    • RunAsync(Action, Action<object>)
    • RunAsync(Action)
    • RunAsync(Action, Action<object>)
    • RunAsync(Action)
    • RunAsync(Action, Action<object>)
    • RunAsync(Action)
    • RunAsync(Action, Action<object>)
    • RunAsync(Action)
    • RunAsync(Action, Action<object>)
    • RunAsync(Action)
    • RunAsync(Action, Action<object>)
    • RunAsync(Action)
    • RunAsync(Action, Action<object>)
    • RunAsync(Action)
    • RunAsync(Action, Action<object>)
    • RunOnScheduler(Action)
    • RunOnScheduler(Action)
    • RunOnScheduler(Action)
    • RunOnScheduler(Action)
    • RunOnScheduler(Action)
    • RunOnScheduler(Action)
    • RunOnScheduler(Action)
    • RunOnScheduler(Action)
    • RunOnScheduler(Action)
    • RunOnScheduler(Action)
    • RunOnScheduler(Action)
    • RunOnScheduler(Action)
    • RunOnUiThread(Action)
    • RunOnUiThread(Action)
    • RunOnUiThread(Action)
    • RunOnUiThread(Action)
    • RunOnUiThread(Action)
    • RunOnUiThread(Action)
    • RunOnUiThread(Action)
    • RunOnUiThread(Action)
    • RunOnUiThread(Action)
    • RunOnUiThread(Action)
    • RunOnUiThread(Action)
    • RunOnUiThread(Action)