UGameplayStatics::GetAllActorsOfClass will only accept TArray so your TArray BaseFrameArray; must be TArray BaseFrameArray;
Only after this then you can cast to whatever class you want.
UGameplayStatics::GetAllActorsOfClass will only accept TArray so your TArray BaseFrameArray; must be TArray BaseFrameArray;
Only after this then you can cast to whatever class you want.