Casting Question

Really appreciate the learning references. I’ve already been through most of them including Epic’s Zak Parish BP comms tutorial

I already read all the forum entries I could find on the subject. There seems to be a great deal of reluctance to explain how casting works. I suspect this is because most people don’t actually know, but I will go through the ones you specifically mentioned tonight at work. Hopefully what I need is in there.

I’ve been to the Epic Online Learning. When I search for “casting” there are four courses that show up. Two have nothing to do with casting (i.e. “Converting Blueprint to C++”) and the other two use only the very basic examples (i.e. Cast to PlayerController with GetPlayerController). I’ve been through both of those courses already, and neither taught what I’m trying to figure out.

For the moment, I’ve just moved all object variables that I need to access outside of that object to something I can easily cast to (Player Controller, GameMode, GameInstance, PlayerPawn) This seems to defeat the purpose of OOP, but it’s the only thing I can get to work. If I can’t access an object’s variables outside of that object, then I have to put those variables in a place where I can access them.

I’ll look for some market place projects to dissect. That’s a great suggestion.

Thanks for the help. I hope the answer is in the materials you linked to. I’ll give them a read tonight.