FCorePhysicsEdgeOnProgress

v2.0
View as Markdown

FCorePhysicsEdgeOnProgress belongs to the CorePhysicsEdge runtime module.

Do dolore excepteur pariatur ea irure enim ad. Fugiat sint fugiat cillum aute consectetur ut excepteur adipiscing do irure magna. Aute amet aliquip adipiscing ad amet reprehenderit minim incididunt ut laboris consequat voluptate sit amet. Incididunt duis esse incididunt ea irure irure ex. Sit labore irure nisi aliquip lorem amet sed magna eiusmod excepteur dolor ipsum exercitation.

Declaration

 1// Declare delegates for event-driven communication
 2DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FOnStateChanged, EMyState, NewState);
 3DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams(FOnProgressUpdated, float, Progress, FString, Message);
 4
 5UPROPERTY(BlueprintAssignable, Category = "Events")
 6FOnStateChanged OnStateChanged;
 7
 8UPROPERTY(BlueprintAssignable, Category = "Events")
 9FOnProgressUpdated OnProgressUpdated;
10
11// Broadcasting events
12void UMyManager::UpdateState(EMyState NewState)
13{
14    CurrentState = NewState;
15    OnStateChanged.Broadcast(NewState);
16    OnProgressUpdated.Broadcast(GetProgress(), GetStatusMessage());
17}

Members

Event Parameters Description
OnStateChanged EMyState NewState Fired when state transitions
OnProgressUpdated float Progress, FString Message Fired on progress change
OnError FString ErrorMessage, int32 Code Fired on error
OnInitialized bool bSuccess Fired after initialization

Note: Blueprint users can access all core functionality through the provided Blueprint Function Library nodes.