I am running 5.2 and am tryingto add StateTrees into my project I am working on and whenever I add a new StateTree based class to it in C++ it throws these type of errors. If I try adding different verison of classes that apply to StateTree like Evaluators or Conditons it gives me the same error.
Building 3 actions with 3 processes...
[1/3] Compile [x64] USI_StateTree_TaskBase .cpp
E:\Unreal Engine\UE_5.2\Engine\Plugins\Runtime\StateTree\Source\StateTreeModule\Public\StateTree.h(80): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
I was following this tutorial here:
StateTree Custom C++ Task
Plugin is enabled in editor.
Dependencies are added: “StateTreeModule”, “GameplayStateTreeModule”
Here is the class I added:
#include "CoreMinimal.h"
#include "Blueprint/StateTreeTaskBlueprintBase.h"
#include "SI_StateTree_TaskBase.generated.h"
UCLASS()
class SI_PROTOTYPE_API USI_StateTree_TaskBase : public UStateTreeTaskBlueprintBase
{
GENERATED_BODY()
};
Upon adding this code to the build it gives me the error above. If I delete the class and build it again it will work just fine.
Has anyone ran into this issue. And am I missing an include or a dependency?