[Request] BrainComponent tutorial

Hi

I’ve had a look around and there doesn’t seem to be anything out there explaining how to use the BrainComponent. I have the following subobject pointers in my AI class;

BlackboardComp = PCIP.CreateDefaultSubobject<UBlackboardComponent>(this, TEXT("BlackboardComp"));
BehaviorComp = PCIP.CreateDefaultSubobject<UBehaviorTreeComponent>(this, TEXT("BehaviorComp"));
SensingComp = PCIP.CreateDefaultSubobject<UPawnSensingComponent>(this, TEXT("SensingComp"));

I’m using them no problem, only I’m trying to switch behavior trees and StopTree() doesnt actually stop the tree. I’ve been told to call BrainComponent->StopLogic(), however BrainComponent is NULL. I’m not really sure how to initialize it and what it does, exactly.

Thanks!