Async Blueprints Plugin v1.0.0
AsyncBlueprints
Loading...
Searching...
No Matches
UAsyncNode Class Reference

Asynchronous blueprint node for executing tasks. More...

#include <AsyncNode.h>

Public Member Functions

 UAsyncNode (const FObjectInitializer &ObjectInitializer=FObjectInitializer::Get())
 Constructor for the UAsyncNode class.
 
 UFUNCTION (BlueprintCallable, Category="Async|Nodes", meta=(WorldContext="InWorldContextObject"), meta=(BlueprintInternalUseOnly="true")) static UAsyncNode *Async(UObject *InWorldContextObject
 Static method to initiate an asynchronous execution in Blueprints.
 
 UPARAM (DisplayName="Execution") EBlueprintAsyncExecution InAsyncExecution)
 
virtual void Activate () override
 

Public Attributes

EBlueprintAsyncExecution AsyncExecution
 
FAsyncNodeDelegate OnAsync
 Delegate broadcast when the async is activated.
 
FAsyncNodeDelegate OnCompleted
 Delegate broadcast when the async is completed.
 

Detailed Description

Asynchronous blueprint node for executing tasks.

This class represents an asynchronous blueprint node that can execute a task in various contexts (such as Task Graph or a separate thread). It uses a delegate system to notify when the async task starts and completes.

Constructor & Destructor Documentation

◆ UAsyncNode()

UAsyncNode::UAsyncNode ( const FObjectInitializer & ObjectInitializer = FObjectInitializer::Get())

Constructor for the UAsyncNode class.

Parameters
ObjectInitializerInitialization object, default is the global object initializer.

Member Function Documentation

◆ UFUNCTION()

UAsyncNode::UFUNCTION ( BlueprintCallable ,
Category = "Async|Nodes",
meta = (WorldContext="InWorldContextObject"),
meta = (BlueprintInternalUseOnly="true") )

Static method to initiate an asynchronous execution in Blueprints.

Starts an asynchronous task using the specified execution context.

Parameters
InWorldContextObjectThe context object in which the task is executed.
InAsyncExecutionThe execution mode (task graph, thread, etc.).
Note
The 'Completed' event will be executed in the same thread as specified by the 'Execution' parameter.
Returns
A UAsyncNode object.

Member Data Documentation

◆ AsyncExecution

EBlueprintAsyncExecution UAsyncNode::AsyncExecution

Holds the execution mode for the async task.


The documentation for this class was generated from the following files: