I am trying to access properties from my custom player controller class, however, whenever I cast from the player controller to the custom class, it is always failing. The get player controller function is being called from a blueprint widget, which I am using for the game’s hud. I made sure in the world settings to have selected the correct game mode, as well as checked that the correct player controller class has been selected. I am using unreal engine 4.12. Any ideas?
p.s: The index being passed was 0 and when I did a print string of the display name of the returned value resulting from the “Get Player Controller” it says Player Controller.