AActor GetComponents Not Working

So I’m using the following code

TArray meshList;
MyAActor->GetComponents(meshList);

I’m getting a nonsense error saying GetComponents doesn’t exist. I’m able to use FindComponent just fine from the same actor. GetComponents is listed online in the AActor class framework reference, so I’m really confused as to what the problem is.

//own Components
TArray<UStaticMeshComponent*> MArray;
GetComponents(MArray);

// Get from another Actor
TArray<UStaticMeshComponent*> MArray;
SomeActorRef->GetComponents<UStaticMeshComponent>(MArray);

Thanks for your reply, I thought that’s what I was doing. I had been programming for about twelve hours straight yesterday, and after getting some rest I noticed I forgot to make TArray an array of pointers to static mesh component. Man do I feel stupid. Thank you again!