[c++]Why can't I use SetSkeletalMesh()?

This is the class that inherited the ACharacter.

header :

class USkeletalMeshComponent* MyMesh;

cpp :

MyMesh = GetMesh();

When I did this, MyMesh of second line can’t use SetSkeletalMesh().

Not only SetSkeletalMesh, Every member does not appear.

Help me please…

Do you have included the Header for skeletalmesh? With the new Include what you Need System you have to include each Header on you own.
You Need Components/SkeletalMeshComponent.h

Have a look here:

And here:

Thank you! It works well.
You save me!