Download

custom component - how to get owner member variable?

hi,
i’d like set a variable** float** MaxSpeed in my actor class ,
for now im coding the movement component , it should get the ** float** MaxSpeed from its owner. how could i do that?

cast to owner class? but that wont work with different classes, right?

thanks

seems like the only i can do is to cast to owner class:)

Not sure what you mean by “only”, considering that is the correct approach. :slight_smile: