Just an example
So lets say i have this in class A cpp:
void UClassA::BeginPlay()
Super::BeginPlay();
void UClassA::FuncTest()
{
UE_LOG(LogTemp, Warning, TEXT("Test"))
}
but now I want to access it in another class, classB cpp:
void UClassB::BeginPlay()
{
Super::BeginPlay();
FuncTest(); //Call it here
I’ve read some examples but I don’t quite fully understand them, so far I think you have to do something like:
UClassA* Message = Cast<UClassA>(what goes here???);
Message->FuncTest();
I know you have to include the header file of ClassA in the ClassB file, but what else do you have to do?