Why does GetMesh() -> GetAnimInstance() returns null?

GetMesh() → GetAnimInstance() returns null, even though I’ve set it in the ThirdPersonCharacter blueprint to my custom AnimInstanceClass Blueprint. GetMesh() does not return null. Any help would be appreciated!

same here on 4.9, have you found an answer?

bump… is this a bug or what? I event tried with the Third person example and still returns null, the GetMesh is fine…

Well you are spot on sir, thanks alot!

Im guessing the mesh was created in code, and the blueprint was added in through the editor?
This means the constructor doesn’t have access to the blueprint the moment the guy is created, since you added it later.

Get it from the BeginPlay() function, which is triggered when the game starts.