Sorry for the stupid question… (I am very new to cpp
In the header file of the ShooterAIController, we have ‘class’ in front of UBehaviorTree.
Why we need the ‘class’?
Is it a forward declaration? Is it the same as that we put ‘class UBehaviorTree’ just below the includes? If yes, why we don’t need to include #include “BehaviorTree/BehaviorTree.h” in the cpp file?
private:
UPROPERTY(EditAnywhere)
class UBehaviorTree* AIBehavior;