GetMesh()->GetAnimInstance() Returning Null

When i try to cache the player’s AnimInstance it keeps returning null even though the anim instance is active and drives the character animation. I want to use it to play a montage so i have to cache and use it but i’ve had no luck it just keeps returning null.

Since it is a data driven framework I’m working on it tries to get the parent Anim Instance class rather than as specific one and to clear all doubts i tried hard coding the actual character class in the game to get the instance of that class’s anim instance but even that returned null

Screenshot 2025-08-24 041457

Only the anim instance seems to have an issue, because getting the mesh works just fine

And clearly from the video the animation blueprint works just fine so i really don’t get what’s wrong can someone please help me out??

Screenshot 2025-08-24 042414

I don’t know if this will help anyone but for some reason GetAnimInstance only returns the correct instance on begin play so you have to get and cache the value then because it returns null when used anywhere else… That still makes no sense to me but it is what it is.

if you need it for an external system that you created/modularised you can use an interface for communication or as i like to do it, use a manager component.