Hi!
I am trying to cast a BP_HUD to a HUD type c++ class which is failing. The BP is reparented to the c++ class which I am trying to cast to. Unable to figure out why?
Here Gamemode`s HUD is set to BP_HUD which is a blueprint reparented to ObjectiveHUD which is a C++ class based on HUD. GiveWarning method is BlueprintImplementableEvent which is defined in BP_HUD. But still the cast fails.
I am trying to get the reference to HUD class set in game mode at that time (which at time is BP_HUD which is based on ObjectiveHUD class). This is so I can call the method defined in ObjectiveHUD class. This code is written in a different class which is called when player overlaps that trigger.