Fix substate label issue and add IsAfterFrame and IsBeforeFrame macros

This commit is contained in:
Kevin Poretti 2023-10-20 22:58:41 -04:00
parent b3cee07ada
commit c43aca536a
3 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@ -115,9 +115,9 @@ void UFFStateMachineComponent::GoToState(UFFState* NewState)
CurrentState->Exit(GetCurrentStateContext());
CurrentState = NewState;
CurrentState->Enter(GetCurrentStateContext());
TicksInState = 0;
CurrentSubStateLabel = NAME_None;
CurrentState->Enter(GetCurrentStateContext());
}
void UFFStateMachineComponent::GoToEntryState()

View File

@ -94,7 +94,7 @@ public:
FORCEINLINE FName GetCurrentSubStateLabel() const;
UFUNCTION(BlueprintCallable)
FORCEINLINE void SetSubStateLabel(FName InSubStateLabel);
void SetSubStateLabel(FName InSubStateLabel);
/**
*