How to take the value of a variable from another C++ class

I have a C++ Character class and a C++ AnimInstance class. I want to pass the Velocity value from Character to AnimInstance. Please tell me how to do it. I have tried the options I found on this forum, but they are only suitable for static variables. And Velocity, as you know, is not static.

1 Like

If I am remembering correctly, the Owner of your AnimInstance class is the Character, so you can do a Get Actor Owner, I believe it’s called.