Cannot Create UBehaviourTree pointer - Error: Unrecognized type 'UBehaviourTree' - type must be a UCLASS, USTRUCT or UENUM

I’m trying to create a UBehaviourTree pointer but I get theis error: Error: Unrecognized type ‘UBehaviourTree’ - type must be a UCLASS, USTRUCT or UENUM when I compile it. Here is my code:

ElementalsEnemy.h:

// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "BehaviorTree/BehaviorTree.h"
#include "BehaviorTree/BehaviorTreeComponent.h"
#include "BehaviorTree/BlackboardComponent.h"
#include "BehaviorTree/Blackboard/BlackboardKeyAllTypes.h"
#include "CoreMinimal.h"
#include "GameFramework/Character.h"
#include "ElementalsEnemy.generated.h"

UCLASS()
class ELEMENTALS_API AElementalsEnemy : public ACharacter
{
	GENERATED_BODY()

public:
	// Sets default values for this character's properties
	AElementalsEnemy();

protected:
	// Called when the game starts or when spawned
	virtual void BeginPlay() override;

public:	
	// Called every frame
	virtual void Tick(float DeltaTime) override;

	// Called to bind functionality to input
	virtual void SetupPlayerInputComponent(class UInputComponent* PlayerInputComponent) override;

	UPROPERTY(EditAnywhere)
	UBehaviourTree* BehaviourTree;
};

ElementalsEnemy.cpp:

// Fill out your copyright notice in the Description page of Project Settings.

#include "ElementalsEnemy.h"
#include "BehaviorTree/BehaviorTree.h"
#include "BehaviorTree/BehaviorTreeComponent.h"
#include "BehaviorTree/BlackboardComponent.h"
#include "BehaviorTree/Blackboard/BlackboardKeyAllTypes.h"

// Sets default values
AElementalsEnemy::AElementalsEnemy()
{
 	// Set this character to call Tick() every frame.  You can turn this off to improve performance if you don't need it.
	PrimaryActorTick.bCanEverTick = false;

}

// Called when the game starts or when spawned
void AElementalsEnemy::BeginPlay()
{
	Super::BeginPlay();
	
}

// Called every frame
void AElementalsEnemy::Tick(float DeltaTime)
{
	Super::Tick(DeltaTime);

}

// Called to bind functionality to input
void AElementalsEnemy::SetupPlayerInputComponent(UInputComponent* PlayerInputComponent)
{
	Super::SetupPlayerInputComponent(PlayerInputComponent);

}

How can I fix this?

UBehaviorTree, not UBehaviourTree (pesky American spellings)

Thank you, feel like a right idiot now!

… wow , this was exactly my problem … many thanks, your post save me time a llllllot … ; D ,

Same here ahahahha, Thanks.